int a=5;
a++;
a-=(a--)-(--a);
System.out.println(a);
Answers
Answered by
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
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
Math,
6 hours ago
Social Sciences,
6 hours ago
Math,
6 hours ago
English,
11 hours ago
Math,
8 months ago