whats is mean by class.forName()
whats the return type of class

Answer Posted / vallepu veerendra kumar

Class.forName() is a predefined method present in predefined
class(Class)which is present in predefined java.lang
package, responsibility of this method is loading the given
class and it will register the specific driver for
connecting the database,its return type is:Class only
ex:Class.forName("oracle.jdbc.driver.OracleDriver") here
type4 driver i taken, you dont worry you will take ur self

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I run seam outside of jboss as?

628


What are the call back methods in entity bean?

550


Do I need to import javlang package any time? Why ?

616


What is a class loader?

576


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

589






What is the diffrence between a local-tx-datasource and a xa-datasource?

567


What is jboss?

564


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

570


Can I run seam with jdk 1.4 and earlier?

546


Difference between hashmap and hashtable?

598


whats is statement and procedure

1579


What are the design considerations while making a choice between using interface and abstract class?

535


What is the purpose of the notifyall() method?

597


What you mean by COM and DCOM?

605


Explain phantom read?

1729