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 Activation Instantinator?

2096


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2750


what is handle?

2070


Why use POJO when I can use hashmap

2253


How are the elements of a cardlayout organized?

762






Can I use multiple html form elements with the same name?

789


Do I have to use jsps with my application?

744


what is a portable component?

1647


How can I scroll through list of pages like the search results in google?

753


What is the purpose of the wait() method?

804


How will you pass parameters in RMI? Why do you serialize?

894


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1951


what is meant by JRMP?

1996


What is JTS?

2057


Explain the different types of memory used by jvm?

839