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 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
The detailed answer for the above question is provided below Answer Th... View full answer
Get step-by-step solutions from verified subject matter experts
