Computer Science, asked by prasanthgamerpro, 11 hours ago

int a=5;
a++;
a-=(a--)-(--a);
System.out.println(a);

Answers

Answered by SohamNaik161834
2

Answer:

Give the output of the following method:

public static void main (String [ ] args){ int a = 5;

a++; System.out.println(a);

a- = (a – -) – (- – a);

System.out.println(a);

Answered by vajjuindu71
0

Answer:

Program 1

// filename Main.java

class Test {

protected int x, y;

}

class Main {

public static void main(String args[]) {

Test t = new Test();

System.out.println(t.x + " " + t.y);

}

}

Similar questions