when we write class.forName("any one class"); what happens
actually?what it will return?explain stepwise?

Answer Posted / gaurav agrawal

why are you misguiding the people, class.forName("") create
the instance of the class given as argument of the forName
().
first it will load the class in the JVM and after that it
will create the instance.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1265


What is variable explain?

724


What is the difference between a constructor and a method?

840


What is double parsedouble in java?

745


What is thread start?

714


What are the different types of methodologies?

754


What class of exceptions are generated by the java run-time system?

878


What is tree node in java?

720


What methods are used in Servlet?Applet communication?

1910


How do you classify Dialog Box?

835


What is main string [] args?

731


What do you understand by classes in java?

757


What is java volatile?

732


What is the difference between && and & in java?

804


Is an array a vector?

737