whats is mean by class.forName()
whats the return type of class
Answers were Sorted based on User's Feedback
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|
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
type4 driver i taken, you dont worry you will take ur self
|Is This Answer Correct ?||0 Yes||0 No|
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|
Describe activation process?
Is infobus easy to use?
What is Stream Tokenizer?
What is the relationship between local interfaces and container-managed relationships?
Do I need to import javlang package any time? Why ?
Have you used threads in Servelet?
Do we need to override service() method
what is Activation Instantinator?
Which container method is used to cause a container to be laid out and redisplayed?
Can constructors be synchronized in java?
What are the benefits of detached objects?
which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based