What will be the output of the following code? public class Test { final int x = 30; public static void main(String[] args) { final int i = 20; final int x; Test t = new Test(); x = 20;...


What will be the output of the following code?
public class Test {
final int x = 30;
public static void main(String[] args)
{
final int i = 20;
final int x;
Test t = new Test();
x = 20;
System.out.println(x);
System.out.println(t.x);
System.out.println(t.temp(i));
}
int temp(int y)
{
return y + 5;
}
}





Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here