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
Which collections are thread safe in java?
What is an error in java?
why not override thread to make a runnable? : Java thread
What is a "pure virtual" member function?
Explain restrictions for using anonymous inner classes?
How to sort an unsorted array in java?
Can we declare array without size in java?
Difference between final and effectively final ?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
Enlist few advantages of inheritance?
What exactly is a .class file?
Is array a class?
What is a Null object?
What is variable and constant explain with example?
What is the order of arraylist in java?