Given a sample code:
class Sample {
int x = 100;
public void checkValue() {
x = 10;
x += 1;
System.out.println(x++);
}
public static void main(String args[]) {
Sample t = new Sample();
t.x = 5;
t.checkValue();
}}
What will be the result of above code ?
(1) 106
(2) 6
(3)
11
(4) 107
(3)