What will be the output of the following code? interface Test { int x = 10; } public class MyClass implements Test{ public void temp() { x = 20; System.out.println(x); } public static void...


What will be the output of the following code?
interface Test {
int x = 10;
}
public class MyClass implements Test{
public void temp() {
x = 20;
System.out.println(x);
}
public static void main(String[] args) {
MyClass m = new MyClass();
m.temp();
}
}



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here