Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
PL
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Cisco
Amazon
Google
CompTIA
SAP
VMware
Oracle
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ISC2
ServiceNow
Dell EMC
CheckPoint
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Oracle Discussions
Exam 1Z0-809 Topic 7 Question 66 Discussion
Oracle Exam 1Z0-809 Topic 7 Question 66 Discussion
Actual exam question for Oracle's 1Z0-809 exam
Question #: 66
Topic #: 7
[All 1Z0-809 Questions]
Which code fragment is required to load a JDBC 3.0 driver?
A
Connection con = Connection.getDriver(''jdbc:xyzdata://localhost:3306/EmployeeDB'');
B
Class.forName(''org.xyzdata.jdbc.NetworkDriver'');
C
Connection con = DriverManager.getConnection(''jdbc:xyzdata://localhost:3306/EmployeeDB'');
D
DriverManager.loadDriver (''org.xyzdata.jdbc.NetworkDriver'');
Show Suggested Answer
Hide Answer
Suggested Answer:
D
by
Jessenia
at
Jul 04, 2024, 08:54 AM
Limited Time Offer
25%
Off
Get Premium 1Z0-809 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Ashton
1 months ago
B is the clear winner here. Anything else is just amateur hour. Though I do appreciate the comedic value of option D.
upvoted
0
times
...
Merilyn
2 months ago
Option D is the way to go! 'DriverManager.loadDriver'? That's the kind of thing you'd see in a comedy sketch, not on a certification exam!
upvoted
0
times
Gregoria
16 days ago
I think option B is the correct one.
upvoted
0
times
...
Sophia
17 days ago
C) Connection con = DriverManager.getConnection(''jdbc:xyzdata://localhost:3306/EmployeeDB'');
upvoted
0
times
...
Cammy
1 months ago
B) Class.forName(''org.xyzdata.jdbc.NetworkDriver'');
upvoted
0
times
...
...
Pearly
2 months ago
I'm going with B. It's the classic way to load a JDBC driver, and the other options just seem a bit off.
upvoted
0
times
Chantay
1 months ago
User 3: I agree, B is the classic method for this.
upvoted
0
times
...
Freeman
1 months ago
User 2: Yeah, Class.forName is the way to go for loading a JDBC driver.
upvoted
0
times
...
Wava
1 months ago
User 1: I think B is the correct answer.
upvoted
0
times
...
...
Gilberto
2 months ago
Ha! Option D is definitely the funniest one. 'DriverManager.loadDriver'? That's just silly. B is the way to go.
upvoted
0
times
...
Selma
2 months ago
Hmm, I'm not sure. Option C looks like it might be the right one, since it actually gets the connection to the database.
upvoted
0
times
Donte
18 days ago
I agree with you, option C is the one that gets the connection to the database.
upvoted
0
times
...
Lawana
20 days ago
I'm not sure, but I think option B is correct. It's used to load the JDBC driver.
upvoted
0
times
...
Rebeca
1 months ago
No, I believe option C is the right choice. It actually establishes the connection to the database.
upvoted
0
times
...
Ernest
2 months ago
I think option B is the correct one. You need to use Class.forName to load the driver.
upvoted
0
times
...
...
Josefa
2 months ago
I think the correct answer is option B. It's the standard way to load a JDBC driver using the Class.forName() method.
upvoted
0
times
Dewitt
1 months ago
Yes, Class.forName() is used to load the JDBC driver.
upvoted
0
times
...
Dewitt
1 months ago
I agree, option B is the correct answer.
upvoted
0
times
...
...
Lilli
2 months ago
I'm not sure, but I think A) Connection con = Connection.getDriver(''jdbc:xyzdata://localhost:3306/EmployeeDB'') might also work.
upvoted
0
times
...
Tammara
3 months ago
I agree with Dustin, because Class.forName() is used to dynamically load the driver class.
upvoted
0
times
...
Dustin
3 months ago
I think the correct answer is B) Class.forName(''org.xyzdata.jdbc.NetworkDriver'').
upvoted
0
times
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
az-700
pass4success
az-104
200-301
200-201
cissp
350-401
350-201
350-501
350-601
350-801
350-901
az-720
az-305
pl-300
Ashton
1 months agoMerilyn
2 months agoGregoria
16 days agoSophia
17 days agoCammy
1 months agoPearly
2 months agoChantay
1 months agoFreeman
1 months agoWava
1 months agoGilberto
2 months agoSelma
2 months agoDonte
18 days agoLawana
20 days agoRebeca
1 months agoErnest
2 months agoJosefa
2 months agoDewitt
1 months agoDewitt
1 months agoLilli
2 months agoTammara
3 months agoDustin
3 months ago