Breeze Zhang

Greenhorn
+ Follow
since May 28, 2003
Merit badge: grant badges
For More
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 Breeze Zhang

great thanks to Dan!! In his single topic exercises, the sections I reviewed all get 100%, if I do all the exercises...
Strongly recommend Dan's exerciseDan's single topic exercise
20 years ago
public class Simple{
int i;
{
i = 10;
System.out.println("i = " + i);
}
public static void main(String[] args) {
new Simple();
}
}
--------------------------------------------
if remove "{}" of "i=10...", compile error,so
think the code in "{}" can be considerd as anonymous method which should never be called. But, the result print i = 10 , Who know java how to deal with this situation?
thank you!
But they don't explain why JVM is different from C compilation.and for what reason?
if
a = 1;
a = a++;
then, at the next line:
java: a -> "1":
c: a -> "2"
I think their sequences of process this code is different, but why?
does java compile engine change this for some good?