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

What are preemptive scheduling and time slicing and what is the difference between them?

1 Answers  


what about static?

1 Answers  


How will the struts know which action class to call when you submit a form?

6 Answers   HeadStrong,


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

0 Answers   Infosys,


Write a program on RMI and JDBC using StoredProcedure?

1 Answers  






Define aop(assepct oriented programing)?

0 Answers  


If we opened windows notepad 4 times, does it starts 4 processes or 4 threads?

1 Answers  


Have you used threads in Servelet?

0 Answers   Satyam,


the use of try and ffinally keyword

1 Answers  


What is thread deadlock? How to resolve thread deadlock?

3 Answers  


difference between Abstract and Interface?

2 Answers   HCL, Infotech,


What is a task?s priority?

1 Answers  


Categories