Roger Wang

Greenhorn
+ Follow
since Sep 13, 2001
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Roger Wang

check this modified code:
class fort extends Thread {
public void start(){
super.start();
for (int i=0; i<100;i++) System.out.println("in start");
}
public void run() {
for (int i=0; i<100;i++) System.out.println("in run");
}
public static void main(String args[]){
fort t = new fort();
t.start();
}
}
so I think it's just because the println("in start"); get the cpu slightly earlier.

Originally posted by Cameron Park:
I don't understand why is "in start" printed before "in run"? Shouldn't super.start() print "in run" when it invoke run(), then "in start" was printed?
Thanks.


Hi Sun:
I have seen lots of people give their applause to you and your mock tests . I am really interested in it either... But unfortunately I got never connected to the site you listed in javaranch, maybe because I am in China mainland and due to the gateway? Can you help me out of this or just send me the test
by mail to wangzai@hotmail.com ?
Thanks a lot.
the reason you not see the output is (maybe) not have fulsh() after the write() method
for html(jsp) or java UI I know the solution...
but sorry I don't know what is business object,
and how to finished your task as 'business object'?
anyone drop me a line?
thax
BR
16 years ago
download jad
16 years ago