luk Hann

Ranch Hand
+ Follow
since Jan 29, 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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by luk Hann

yes, collections will be a minor part of the exam. don't spend so much time on that.
Good luck.
Luk
21 years ago
herb, if i am an experienced Java guy, i won't take that exam. You got to know that is where the certification works and why people pay 150 bucks for.
21 years ago
I don't know whether Java is still alive or dead. I don't care. All I know is that the certification I just got is pretty much useless. I sent out bunch of resumes with that title and got no response at all! What a shame for that title! All the value I can see from that title is that it can make me more competitive in the tight market and get a job. I don't know what happened out there but the certification just didn't work for me.
BTW, don't post something like you need more real "hands-in" experience to get a job. If I had that experience, I won't take the exam.
21 years ago
Congrats, John. We got the same score.

[This message has been edited by luk Hann (edited March 22, 2001).]
21 years ago
you are definitely ready. If you don't feel confident of I/O, read corresponding chapter in Mughal book. I read that part 3 days before the exam (because I/O is also my weakness) and only missed 1 question in that part in the real exam.
Good luck!
luk
21 years ago
It took me about 50 days to work it out. I started from zero. I studied about 10 hours a day during these 50 days. Since you already had 2 years experience, I think you just need to do some mock exams firstly, trying to figure out where is your weakness and then go over RHE book and memorize the things needed to know for the exam. I guess at most you need 30 days if you can contribute 4 hours a day. Good luck!
luk
Sun Certified Java Programmer
Around last Christmas, I knew nothing about Java. Today, I passed the exam with 81%.
I would like to provide the following tips:
1. Clear your doubts in this excellent Forum.
First of all, thank you for all guys who had answered my posted questions! Without you guys, I could not make it.
2. RHE book is definitely excellent. Though sometimes it is a little bit hard to understand. But this book is just like the syllabus, if you can understand 95% of the book, you will be able to hit 80% in the real exam. If you are new to Java, to be able to understand 95% of the book, just read it 4 or 5 times. No doubt, Mughal's book is good too. I read that book to clear a lot of my doubts from RHE book.
3. JQ+, worth to buy. You can use it in two ways: a) check out your level; b) get a flavor how those concepts in RHE book are reflected in the exam questions. But be sure you understand MOST concepts before you use JQ+, otherwise, it won't be very helpful.
4. The last week before the exam is very important, don't lose confidence if you did not do good in the mock exams. Here is how I spent my last week: a) doing JQ+, and my score respectively are: 63%, 56%, 66%, 66%, 71%, 56%(the day I went to take a look at the testing center), 73% and 83%(last night, after I spent the last 2 days to review the forth time of RHE book). b) doing other mock exams. c) Save my last two days to finally go over the RHE book thoroughly and carefully. I deemed this as a CRUCIAL step. I increased my score over 10% after I finished this round of reading.
BTW, the exam is clearly stated, straightforward and close to Jq+.
Luk
[This message has been edited by luk Hann (edited March 12, 2001).]
21 years ago
I still had hard time to understand why s1 was changed while s2 not. Please help me on this because I really don't want to "guess" an answer in the real exam when I face this kind of questions. Thanks. Luk.
import java.util.*;
> public class TestClass
> {
> public static void doStuff(Stack x1, Stack x2)
> {
> x1.push(new Integer(100));
> x2=x1;
> }
>
> public static void main(String args[])
> {
> Stack s1 = new Stack();
> Stack s2 = new Stack();
>
> doStuff(s1, s2);
> System.out.println(""+s1 +" "+ s2);
> }
> }
Given the following code:
class Outside {
private final float i = 1.23f;

void amethod(final float j) {
class Inside {
void innerFoo() {
//some code here
}
}
}
}
What is the correct way to initialize variable j? Did it have a default value in the above case?
Luk
GC
When does the object is eligilbe for GC:
1. Object ob1 = new Object();
2. Object ob2 = ob1;
3. Object ob3 = ob2;
4. ob1 = null;
5. ob2 = null;
6. ob3 = null;
I think after line 6, is that right? Thanks for input.
Luk
Why "int i=018;" causes a compilor error?
Luk
I don't quite understand how the following code works:
class Z {
public static void main(String[] args) {
System.out.println("AAA" + new Z());
}

public String toString() {
System.out.println("###");
return "Z";
}
}
What on earth toString() method did here? Why new Z() will invoke this method? What is something special about toString() method? I am very confused about this method, pls clarify me. Thanks.
Luk
Hey Cindy and Junilu,
Thanks you guys so much! You guys really really gave me a clear explainations here. This actually related to some fundermental concepts about object and object reference. In my self-studying, I actually have spent a lot of time on these. I also read JavaRanch's Campfire article.
I caught almost all your sayings except one sentence from Cindy's posting:


When you said ina.append(" more"); you were going through the reference and acting directly on the object.


And i think this is the core here. So could you guys gave me a little bit further explaination on how ina.append(" more") acted directly on the object?
BTW, if i changed StringBuffer object to String, then both a and b are not effected by method swap(). Is this simply becuase String is immutable? Waiting for your further comments on this. Thanks.
luk
Here is a question from Jquest:

What is the requirement of the class which implements the following Interface
1. public interface Test {
2. void someMethod();
3. }
one of the answers is that Should have somemethod() which must be necessarily declared as public. Why?
Luk
Here is a question from Jquest:
Here is a method which creates a number of String objects in the course of printing a count down sequence.
1. public void countDown() {
2. for( int i = 10 ; i >= 0 ; i-- ){
3. String tmp = Integer.toString( i );
4. System.out.println( tmp );
5. }
6. System.out.println("BOOM!");
7. }
When the program reaches line 6, how many of the String objects created in line 3 are eligible for garbage collection? Assume that the System.out object is not keeping a reference.
Please explain why the answer is 10, not 11. Thanks.
Luk