Java Tests
Preparation for Java tests, interviews and exams
Monday, November 21, 2016
++ operator on variable used multiple times in single line
Write the output of this code:
long l = 10;
System.out.println( "l " + l++ + "; " + l );
Result:
l 10; 11
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment