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


Please Help Members By Posting Answers For Below Questions

Which java version is latest?

534


Can we override the static method?

572


What are the differences between string and stringbuffer?

583


What is methods in java?

508


What is thread count in java?

541






What is sizeof () operator?

566


Which one of the following suits the description of a string better: derived or primitive?

508


Where is the find and replace?

526


List out benefits of object oriented programming language?

476


What is args length in java?

658


Do you know why doesn't the java library use a randomized version of quicksort?

548


Explain the polymorphism principle?

575


Why java applets are more useful for intranets as compared to internet?

575


Name few "optional" classes introduced with java 8 ?

639


How many bits is a 64 bit byte?

534