Exam 1z0-819 All QuestionsBrowse all questions from this exam
Question 84

Assuming the user credentials are correct, which expression will create a Connection?

    Correct Answer: B

    To create a connection using JDBC, the URL must follow a specific format: 'jdbc:<subprotocol>:<subname>'. Option B follows this format correctly with 'jdbc:derby:com'. The other options either do not follow this format or are missing necessary parameters, thus they will not correctly create a Connection.

Discussion
StavokOption: B

B is correct

ASPushkinOption: B

answer : b the format of a JDBC URL is jdbc:<subprotocol>:<subname>

d7bb0b2Option: B

B IS CORRECT BECAUSE ASSUMING CREDENTIALS IS OK

belal97Option: B

B is correct

tmuralimanoharOption: B

Answer: B