PrepAway - Latest Free Exam Questions & Answers

In JDBC, all DriverManager methods are declared

In JDBC, all DriverManager methods are declared

PrepAway - Latest Free Exam Questions & Answers

A.
static

B.
friendly

C.
dynamic

D.
inbound

E.
global

F.
hidden

Explanation:
Quoted directly from Sun’s Java document site at
http//developer.java.sun.com/ All DriverManager methods are declared static,
which means that they operate on the class as a whole and not on particular
instances. In fact, the constructor for DriverManager is declared private to prevent
users from instantiating it. Logically, there is one instance of the DriverManager
class. This means that methods are called by qualifying them with DriverManager,
as in the following line of code.
DriverManager.setLogWriter(out.;


Leave a Reply