chung lee

Ranch Hand
+ Follow
since Jan 17, 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 chung lee

I've been there myself (did a MSc IT and JCP) and I think that you'll learn more about Java from the Certification than what you'll really need for your MSc IT Java module. Besides, going over the JCP will give you an excellent opportunity to know your Java and cane the exams plus any programming coursework that crops up.
chung
You're not only one. I tried to set up an account last week but it failed and nobody from My Certification has replied to my email
chung
18 years ago
Thanks everyone. I'm not too sure about what to do next. Can anyone offer to share some of their experiences with their SCJD and SCWCD exams please? I've read the official sun certification objectives but I prefer to hear about other people's views in order to get a different perspective.
Ta,
chung
18 years ago
Well Done Ragu. What are you planning to study next? SCDJ2 or SCWD?
18 years ago
Hey, you've caned it big time
18 years ago
Hi Simeon,
In your code:

You created an anonymous class (a class with no name) that implements the ActionListener interface.
You then implemented the single method actionPerformed(ActionEvent e) from the interface ActionListener.
So you have done everything correctly and the Java compiler is happy.
chung
Oops, I take it back. All string literals are instances of class String.
Thanks for spotting the mistake Valentin.
This question is a bit nasty.
I tried to print out the two operands and got:
2.0/3.0 = 0.66666666666666666
1.0 - 2.0/3.0 = 0.33333333333333337
1.0/3.0 = 0.33333333333333333
The reason why your orignal question is false is due to rounding errors. Can anyone offer a explanation for this rounding behaviour?
chung
1) The compiler can tell the difference between negative 0.0 and postive 0.0 (please refer to the JLS and api for more details).
Both -1.0/0.0 and 1.0/0.0 produce Double.NEGATIVE_INFINITY
2)String literal are not objects so they can't be garbage collected. (However, the String objects created from the String literals may be gc)
Hi Basha,
I've seen that question from an old mock exam. I don't think that the actual exam be evil enough to confuse you with deprecated methods.
chung
Hi guys and gals,
I sat my Java exam last Friday and passed with 43/59 correct answers. The exam exposed my weak knowledge on I/O and awt but thankfully the exam wasn't as tough as I originally feared.
A big thank you to all the trailbosses, sheriffs, bartenders, ranch hands and greenhorns for contributing to this site. I don't know where to begin to express my thanks for your encouragement and support during my preparations.
For those taking their exams, I wish you all the very best. Also, keep on coding because it pays off in the exam!
chung
18 years ago
Ooops!
Cheers guys for sorting that out. A BIG mistake there. (I still feel a bit shame faced but I feel better being corrected now than in the exam !).
chung
Hi Basha,
I think that you're confusing yourself here. Please feel free to correct me if I'm wrong, but the activity of interrupt() does not kill the thread. Threads may only die when the run() method returns (or if someone turns off your computer etc).
As Rob has correctly pointed out, interrupt() will cause an internal state change within the thread and the boolean "interrupt" flag will change from false to true when the thread is interrupted. This has no affect on the current activity of the running thread.
If interrupt() caused the running thread to stop and/or die, you will be faced with alot of problems. See the deprecated methods of stop(), resume() and suspend() for the full explanation.
I hope that helps.
chung