What does Class.forName do?

Showing Answers 1 - 2 of 2 Answers

forName is static method of final Java.lang.Class Class.

This method returns the object associated with the class or interface with the given string name.

Example:
public static Class forName(String classname)
It returns classname class object.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions