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.
About Question enthuware.ocpjp.v7.2.1367 :
Moderator: admin
-
- Posts: 9
- Joined: Sun Dec 07, 2014 3:27 am
- Contact:
-
- Site Admin
- Posts: 10070
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1367 :
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.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 9
- Joined: Sun Dec 07, 2014 3:27 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1367 :
Many thanks
-
- Posts: 8
- Joined: Sat Oct 28, 2023 9:27 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1367 :
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.
-
- Site Admin
- Posts: 10070
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1367 :
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!
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.
Who is online
Users browsing this forum: No registered users and 136 guests