SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Jeanne Boyarsky wrote:Steven,
I'm sure you read our rant in the chapter about what Scott and I think about the database topic coverage on the exam.
That said, you do not have to know the Oracle driver syntax on the exam. We used Oracle as the name in the example for the sake of picking something. What you do need to know is the simplified database url syntax. Knowing jdbc comes first and that a database name needs to be included is not memorizing the syntax. A and B don't have a database name at all.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Edmund Yong wrote:In the book Oracle Certified Professional Java SE11 Programmer II by Scott Selikoff and Jeanne Boyarsky, page 538 on JDBC, the following URL is listed as a valid one:
jdbc:mysql://localhost:3306
For this URL, there is no database indicated.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
If the database is not specified, the connection is made with no default database.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
We were trying to show that you shouldn't get too attached to the format for the later part of the string. You have to know that it starts with jdbc, has the db type (ex: mysql) and is colon delimited.
Edmund Yong wrote:
Then the following three should all be valid answers. After all, unless you are familiar with Oracle, you wouldn't know whether the database name is required or not.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
I wasn't selected to go to mars. This tiny ad got in ahead of me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|