Question: What would have been the output of the preceding program if the method3 method had contained the following statements? public static void method3 () {

What would have been the output of the preceding program if the method3 method had contained the following statements?

public static void method3 () { method1 (); method2 () ; System.out.println (

public static void method3 () { method1 (); method2 () ; System.out.println ("I am method 3."):

Step by Step Solution

3.49 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Output of Confusing2 program I am me... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!