Question: Code example 1 6 - 2 public static void connectAndOpenDB ( ) { try { StudentDB.connect ( ) ; / / can throw a ClassNotFoundException
Code example public static void connectAndOpenDB try StudentDB.connect; can throw a ClassNotFoundException StudentDB.open; can throw an SQLException catchClassNotFoundException SQLException e System.out.printlnegetMessage; System.out.printlnConnected and opened."; Refer to code example Which of the following is true if an SQLException is thrown? Question options: a The println method after the catch clause was not called. b Neither of the statements that use the println method were called. c A ClassNotFoundException was also thrown. d A ClassNotFoundException was not thrown.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
