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
Write a singleton program?
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?
What is a sessionfactory? Is it a thread-safe object?
What is the RMI and Socket?
How is a java object message delivered to a non-java client?
How many times may an objects finalize() method be invoked by the garbage collector?
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
Why do threads block on i/o?
What is aop(assepct oriented programing)?
What is the difference between the string and stringbuffer classes?
What is the purpose of the notify() method?
Why does the tag url-encode javascript and mailto links?
What if the static modifier is removed from the signature of the main method?
what are RemoteObjects?
What is local interface. How values will be passed?