About Question enthuware.ocpjp.v8.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
UsernameTooShort
Posts: 2
Joined: Tue Nov 01, 2016 6:28 pm
Contact:

About Question enthuware.ocpjp.v8.2.1367 :

Post by UsernameTooShort »

Should this question not at least say that it is talking about JDBC 4.0?
I assumed it was "safer" to call Class.forName before DriverManager.getConnection because it does not say what JDBC version it is.
And as far as I know Class.forName can be called anyway, and does not hurt.

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

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

Post by admin »

For the purpose of this exam, you need to assume that it is talking about JDBC 4.
Yes, calling forName does not hurt. But it is not a must, which is what the question is asking about.
HTH,
Paul.

Touciuciu
Posts: 11
Joined: Fri Aug 17, 2018 8:52 am
Contact:

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

Post by Touciuciu »

Can you post a link with this information from an official source, please?
"For the purpose of this exam, you need to assume that it is talking about JDBC 4."

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

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

Post by admin »

This exam is validated against Java SE 8. This is mentioned in Official exam page.
Java SE 8 uses JDBC 4.

Touciuciu
Posts: 11
Joined: Fri Aug 17, 2018 8:52 am
Contact:

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

Post by Touciuciu »

So, if the JDBC version is not specified, then we need to assume that it is JDBC 4. This information is not stated in the official exam page and I needed to make sure if this is an official information or just an assumption of yours (no offence :) ). Thank you for your suupport

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

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

Post by admin »

Yes, JDBC questions appearing on the exam require you to know JDBC 4 specific features (such as loading of driver). This also shows that JDBC 4 is the default for this exam.
Official exam page says Java SE 8. JDBC is part of Java SE and SE 8 uses JDBC 4. So, there is no confusion in our mind.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests