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
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?
What is variable explain?
What is the difference between a constructor and a method?
What is double parsedouble in java?
What is thread start?
What are the different types of methodologies?
What class of exceptions are generated by the java run-time system?
What is tree node in java?
What methods are used in Servlet?Applet communication?
How do you classify Dialog Box?
What is main string [] args?
What do you understand by classes in java?
What is java volatile?
What is the difference between && and & in java?
Is an array a vector?