Given the code fragment:
and the information:
• The required database driver is configured in the classpath.
• The appropriate database is accessible with the dbURL, username, and passWord exists.
What is the result?
A. A ClassNotFoundException is thrown at runtime.
B. The program prints nothing.
C. The program prints Connection Established.
D. A SQLException is thrown at runtime.
C
Answer is C