Win a copy of Rust Web Development this week in the Other Languages forum!

Prashant Rane

Greenhorn
+ Follow
since Jul 22, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Prashant Rane

Hi,

Is there a single HTML page version or pdf version of Mikalai Zaikin's SCDJWS Study Guide?

Thanks,
Prashant Rane
I agree with Veena.
Here are my two sample test scenarios:
############################################
public class testIncr {
public static void main (String[] args) {
int a = 0;
int b = 0;
b=a++;
System.out.println (a);
System.out.println (b);
}
}
When executed prints:
1
0

###########################################
public class testIncr {
public static void main (String[] args) {
int a = 0;
int b = 0;
a=a++; // note the change
System.out.println (a);
System.out.println (b);
}
}
When executed prints:
0
0
#############################################

Why? Why? Why?
I even looked at JLS, but no clue about this behavior.
Please explain.
Thanks,
Prashant Rane