Question 1: We consider this code: What’s the right choice?

Question 1: We consider this code: What’s the right choice? 1. this… Question 1:We consider this code:Image transcription textinterface I void f(); int f(int i); interface Jextends I void f(double d);… Show moreImage transcription textpublic class A implements J public voidf() { } public int f(int i) { return 0; publicvoid f (double d) { } void f (char c) { }… Show moreWhat’s the right choice? 1. this code can be compiled2. the following piece of code:Image transcription textl i= new J() i.f( )… Show moreis correct (no errors neither at compilation nor at execution)3. none of these answers Question 2:What’s the result of this program?Image transcription textpublic class Test { public staticvoid main (String args ) { try {throw new MyExcepti… Show more… Show more1. Inside the finally block2. Error of compilation3. Oops!4. Oops!    Inside the finally blockComputer Science Engineering & Technology Java Programming ITI 1521