Assuming the user credentials are correct, which expression will create a Connection?
Assuming the user credentials are correct, which expression will create a Connection?
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.
B is correct
answer : b the format of a JDBC URL is jdbc:<subprotocol>:<subname>
B IS CORRECT BECAUSE ASSUMING CREDENTIALS IS OK
B is correct
Answer: B