2017-06-23

Use of java Class.forName

Class.forName use to load the class at run time. Which means its create instance of the class at run time, so that all static, block , variable ,class instance are available.

Example:

Class x=Class.forName("className");

No comments:

Post a Comment