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
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 |
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 |
Write a program to show synchronization?
Write a singleton program?
What are the diff types of exception?
what's the main difference between unix os and linux os?
What must a class do to implement an interface?
what is catalina in tomcat server.
What are the different types of exception?
Java is fully object oriented languages or not?
What do you know about seam?
what is the Scope of Final Keyword in Java?
whats is stored procedure,joins
How do you maintain a stateful session object across the session