IS5103 Lesson-11
1.Which statement about the following class is correct?class Problem extends Exception {public Problem() {}}class YesProblem extends Problem {}public class MyDatabase {public static void connectToDatabase() throw Problem {throws new YesProblem();}public static void main(String[] c) throw Exception {connectToDatabase();}}A) None of these 2.Which…