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

Answers were Sorted based on User's Feedback



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

Answer / sujeev kr singh

class.forName() is a method to load the driver class.
Return type of this method is class object.
eg :- class.forName("sun.jdbc.odbc.jdbcodbcDriver")

Is This Answer Correct ?    1 Yes 1 No

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

Answer / 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

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

Answer / habin

Its way to dynamically loading a class to Java run time environment.For example, when a new request comes to ur server,the request processor class has to be loaded to java run time.there this code is used.
class.forName("fully qualified name of request processor")

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

Write a program to show synchronization?

0 Answers  


Write a singleton program?

0 Answers  


What are the diff types of exception?

0 Answers  


what's the main difference between unix os and linux os?

2 Answers   TCS,


What must a class do to implement an interface?

0 Answers  






what is catalina in tomcat server.

11 Answers   IBM,


What are the different types of exception?

0 Answers  


Java is fully object oriented languages or not?

0 Answers  


What do you know about seam?

0 Answers  


what is the Scope of Final Keyword in Java?

1 Answers   HCL,


whats is stored procedure,joins

1 Answers   Photon,


How do you maintain a stateful session object across the session

2 Answers   HCL,


Categories