Computer Science, asked by lailymukherjee7, 1 year ago

Question for java lover


what will be the output of the following method : -

public static void main ( )
{
int a = 5;
a++;
system.out.println(a);
a = a-- - --a;
system.out.println(a);
}

Attachments:

Answers

Answered by rumabid890
2

5,1 is the answer of the question


lailymukherjee7: please show the stepping of the output of the answer you have given
Similar questions