Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Describe activation process?

0 Answers  


Is infobus easy to use?

0 Answers  


What is Stream Tokenizer?

0 Answers   TCS,


What is the relationship between local interfaces and container-managed relationships?

0 Answers  


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

0 Answers  






Have you used threads in Servelet?

0 Answers   Satyam,


Do we need to override service() method

0 Answers  


what is Activation Instantinator?

0 Answers  


Which container method is used to cause a container to be laid out and redisplayed?

0 Answers  


Can constructors be synchronized in java?

0 Answers  


What are the benefits of detached objects?

0 Answers  


which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based

1 Answers  






Categories