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.
About Question enthuware.ocpjp.v8.2.1367 :
Moderator: admin
-
- Posts: 2
- Joined: Tue Nov 01, 2016 6:28 pm
- Contact:
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1367 :
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.
Yes, calling forName does not hurt. But it is not a must, which is what the question is asking about.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 11
- Joined: Fri Aug 17, 2018 8:52 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1367 :
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."
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1367 :
This exam is validated against Java SE 8. This is mentioned in Official exam page.
Java SE 8 uses JDBC 4.
Java SE 8 uses JDBC 4.
If you like our products and services, please help us by posting your review here.
-
- Posts: 11
- Joined: Fri Aug 17, 2018 8:52 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1367 :
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
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1367 :
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.
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.
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 40 guests