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
What is data type modifier?
What is executor memory?
What is a class object?
What is application tier?
How you can force the garbage collection?
Distinguish between a predicate and a function?
What is the static field modifier?
What is the difference between variable declaration and variable initialization?
What is the difference between a method and a function in alice?
Can we execute java program without main method?
What is anonymous inner class?
What is object in java?
What is the difference between char and char *?
Can a constructor be private and how are this() and super() method used with constructor?
How can we make copy of a java object?