Page 1 of 1

About Question enthuware.ocpjp.v7.2.1367 :

Posted: Tue Apr 07, 2015 2:57 am
by garfield
I think that the question must specify that the JDBC dirver is compliant to > 4.0 spec and in any case option 5 is also valid.
Unless that's the format of the question to be expected in the exam.

Re: About Question enthuware.ocpjp.v7.2.1367 :

Posted: Tue Apr 07, 2015 9:08 am
by admin
This exam is for Java 7 and the question says "must" in the problem statement, so you have to pick the options accordingly.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1367 :

Posted: Tue Apr 07, 2015 11:45 am
by garfield
Many thanks

Re: About Question enthuware.ocpjp.v7.2.1367 :

Posted: Sun Nov 12, 2023 10:02 am
by andrew1584
Looks like this one is outdated. Driver don't have to be put to a classpath, it can be used as a module. You don't have to call DriverManager.getConnection, connection can be obtained using DataSource.

Re: About Question enthuware.ocpjp.v7.2.1367 :

Posted: Sun Nov 12, 2023 11:25 am
by admin
Yes, module path is also a possibility. Should be updated.
DataSource is in javax.sql page and is higher level abstraction, which uses DriverManager, so, DriverManager.getConnection is required.

thank you for your feedback!