Question: What is the output of the following java code? public class TestClass { static int Func(int X, int Y){ int temp = X; }

What is the output of the following java code? public class TestClass { static int Func(int X, int Y){ int

What is the output of the following java code? public class TestClass { static int Func(int X, int Y){ int temp = X; } public static void main(String[] args) { int A = 3; int B = 4; } X = Y; Y = temp; return (X+Y); } System.out.println("Result is = 11 + Func (B,A));

Step by Step Solution

3.33 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below Answer Th... 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 Programming Questions!