Monday, December 7, 2009

Java Exam Prep

int count = 0;
System.out.println(count++);
System.out.println(count++);
output: 0, 1

int count = 0;
System.out.println(++count);
System.out.println(++count);
output: 1, 2

int count = 0;
System.out.println(count++);
System.out.println(++count);
output: 0, 2

No comments: