Driver manager is a class/interface.

Answer Posted / amarajagan

DriverManager is a Class as part of javax.sql.*; package.The
purpose of DriverManager is to register the JDBC Driver and
to get the Connection Object
--->DriverManager.registerDriver(new
Oracle.jdbc.driver.OracleDriver());
--->Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many ejb objects are created for a bean?

729


Name the attributes of javax.ejb.ejb.

694


What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?

765


What is the default transaction attribute for an ejb?

743


Define ejb Create() and EjbPostCreate()?

787


What is @resource in java?

732


Is microservice stateless?

673


What is the difference between find and select methods in ejb?

740


Enlist the CallBack methods of Entity Bean.

787


Enlist the CallBack methods of Session Bean?

771


How does the server decide which beans to passivate and activate?

784


How does ejbs work?

716


What does statelessness mean?

770


What are stateless functions?

715


What is ejb and its architecture?

701