About Question enthuware.ocpjp.v7.2.1367 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
garfield
Posts: 9
Joined: Sun Dec 07, 2014 3:27 am
Contact:

About Question enthuware.ocpjp.v7.2.1367 :

Post 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.

admin
Site Admin
Posts: 10053
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

garfield
Posts: 9
Joined: Sun Dec 07, 2014 3:27 am
Contact:

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

Post by garfield »

Many thanks

andrew1584
Posts: 8
Joined: Sat Oct 28, 2023 9:27 am
Contact:

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

Post 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.

admin
Site Admin
Posts: 10053
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests