Computer Science, asked by sudesnapradhandhara, 4 months ago

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 ajb7899
3

Answer:

Output :-

6

4

Hope it helps .kindly mark it as brainliest.

Similar questions