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
How will you add panel to a frame?
What is the difference between dom and sax parser in java?
Which sorting is best in java?
What is the difference between class & object?
Difference between method overloading and method overriding in java ?
Is java call by reference?
What is the difference between state-based unit testing and interaction-based unit testing?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
whatis Home interface and Remoteinterface? with example?
What is immutable data?
Variables used in a switch statement can be used with which datatypes?
Explain where variables are created in memory?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Which is the class in java?
How does compareto work in java?