answersLogoWhite

0

What does Class.forName method do?

Updated: 8/21/2019
User Avatar

Wiki User

9y ago

Best Answer

Class.forName(X) returns the Class object associated with the class with the given string name where "X" is the fully qualified name of the desired class. Class.forName("X") loads the class if it is not already loaded and uses the classLoader of the class that invokes it.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does Class.forName method do?
Write your answer...
Submit
Still have questions?
magnify glass
imp