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 the relation between the infobus and rmi?

570


How are commas used in the intialization and iteration parts of a for statement?

597


What is a modular application? What does module-relative mean?

556


What do you need to set-up a cluster with jboss?

600


Is there a guarantee of uniqueness for entity beans?

577






Where can I ask questions and make suggestions about seam?

613


Are there books about seam?

648


What are the different class loaders used by jvm?

612


Can I run seam with jdk 1.4 and earlier?

566


What is RMI and what are the services in RMI?

620


What event results from the clicking of a button?

710


For which statements does it make sense to use a label?

601


How to pass parameters in RMI?

1701


What are the pros and cons of detached objects?

557


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 ..

1751