What is the use of Class.forName

Answer Posted / n.sriram

class.forName() is used to load the class at runTime. when
we could not decide which class to load.The Method just
loads the class into memory and when required we can
instantiated the class using Class.forName.newInstance()

Is This Answer Correct ?    15 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is TL and its use?

2091


Difference between new operator and class.forname().newinstance()?

711


What is mdb and what is the special feature of that?

647


What’s jboss cache in short?

705


Why are my checkboxes not being set from on to off?

748






Difference between loadclass and class.forname?

685


What are transaction attributes?

712


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1834


Write a program to show synchronization?

774


Explain ioc concept?

729


what are RemoteObjects?

2334


what is meant by JRMP?

1901


What are the different class loaders used by jvm?

696


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

674


What is prototype?

699