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
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
Math,
6 months ago
English,
6 months ago
Math,
6 months ago
English,
1 year ago
World Languages,
1 year ago
Political Science,
1 year ago