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 java version is latest?
Can we override the static method?
What are the differences between string and stringbuffer?
What is methods in java?
What is thread count in java?
What is sizeof () operator?
Which one of the following suits the description of a string better: derived or primitive?
Where is the find and replace?
List out benefits of object oriented programming language?
What is args length in java?
Do you know why doesn't the java library use a randomized version of quicksort?
Explain the polymorphism principle?
Why java applets are more useful for intranets as compared to internet?
Name few "optional" classes introduced with java 8 ?
How many bits is a 64 bit byte?