whats is mean by class.forName()
whats the return type of class

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a singleton program?

578


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1650


What is a sessionfactory? Is it a thread-safe object?

689


What is the RMI and Socket?

629


How is a java object message delivered to a non-java client?

583






How many times may an objects finalize() method be invoked by the garbage collector?

681


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

1821


Why do threads block on i/o?

688


What is aop(assepct oriented programing)?

589


What is the difference between the string and stringbuffer classes?

552


What is the purpose of the notify() method?

604


Why does the tag url-encode javascript and mailto links?

591


What if the static modifier is removed from the signature of the main method?

713


what are RemoteObjects?

2264


What is local interface. How values will be passed?

563