when we write class.forName("any one class"); what happens
actually?what it will return?explain stepwise?

Answer Posted / ram

Class.forName () takes the class name as parameter, and
loads that class in memory. But it doesn't create any
instance of that class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define an enumeration?

707


What are "class access modifiers" in Java?

694


What are passing parameters?

679


What are the two types of java?

627


What are loops in java? What are three types of loops?

647






How does arraylist work in java?

630


Does sprintf allocate memory?

699


What is the use of using enum to declare a constant?

646


What is sleep method?

704


What is java util concurrentmodificationexception?

586


What is yield () in java?

553


Can private members of a base class are inheritable justify?

578


What is byte code and why is it important to java’s use for internet programming?

677


What is the implementation of destroy method in java. Is it native or java code?

590


What is the purpose of void class?

690