On following program, Please write down the output. Your output must be in corre
ID: 3778492 • Letter: O
Question
On following program, Please write down the output. Your output must be in correct order system our grintin output should be in one line. public class Test {public static void main(String [] args) {System.out.println("Bird");//statement 1 int{} x = {1, 5, 9}; try{System.out.printin ("Monkey");//statement 2 System.out.printin(x[1]);//statement 3 System.out.printin ("Tiger");//statement 4 System.out.printin (x[2]);//statement 5 System.out.printin ("Dog");//statement 6 System.out.printin (x[3]);//statement 7} Catch (Array IndexOutofBoundsException e1) {System.out.printin ("Cat");//statement 8} finally {System.out.printin ("Mouse");//statement 9} System.out.printin ("Bird");//statement 10}} Subtract class c1 {}//(Yes/No) Class C2 extends C1 {}//(Yes/No) Class Test {public static void main (String[] args) {C1 01 = new C1();//(Yes/No) C2 o2 = new C2 ();//(Yes/No) try {System.out.println ("LA");} catch (ArithmeticException) {//(Yes/No) System.out.println ("Boston");} int x=1; finally {//(Yes/No) System.out.println ("Houston");}Explanation / Answer
Question 1:
output 1: Bird
output 2: monkey
output 3: 5
output 4: tiger
output 5: 9
output 6: dog
output 7: cat
output 8: mouse
output 9: Bird
Question 2:
NO
NO
YES
NO
NO
YES
YES
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.