answersLogoWhite

0

What does Class.forName method do?

User Avatar

Anonymous

11y ago
Updated: 8/21/2019

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

11y ago

What else can I help you with?