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);
}
Answers
Answered by
3
Answer:
6
-6
Explanation:
a-=6-(-5);
a-=6+5;
a-=11;
a=a-11;
a=5-11;
a=-6;
Similar questions