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 |
What are preemptive scheduling and time slicing and what is the difference between them?
what about static?
How will the struts know which action class to call when you submit a form?
hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me
Write a program on RMI and JDBC using StoredProcedure?
Define aop(assepct oriented programing)?
If we opened windows notepad 4 times, does it starts 4 processes or 4 threads?
Have you used threads in Servelet?
the use of try and ffinally keyword
What is thread deadlock? How to resolve thread deadlock?
difference between Abstract and Interface?
What is a task?s priority?