Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Nuruljannah Baharudin

Greenhorn
+ Follow
since Dec 13, 2003
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 Nuruljannah Baharudin

I really wasn't expecting that much since I didn't have much time to prepare (about a month), but I was pleasantly surprised! I guess my 1.5 years experience in learning Java helped. I'm an 18-year-old polytechnic student, currently taking a diploma in Information Technology & mostly Java is used in my subjects. Anyway, my school sponsors a few students every year to take the exam, so now that I've passed I'm getting half my money back!
Thanks go to JavaRanch, where I found a wealth of information I wouldn't have found elsewhere. These forums were a great help especially. Although I haven't been here long enough to get active, the meaningful posts here made by others contributed significantly to my learning. Thanks also to Kathy & Bert, whose book was the number one resource in helping me study for the exam. You've wrote one excellent book! My main source of practice questions were Dan Chisholm's, so thanks to you too!
I am looking forward to continuing my Java education & being active on JavaRanch!
18 years ago
Wow, you sure were in a rush Johnny. Heh. Couldn't you postpone the exam if you didn't have much time? Anyway, congratulations!
18 years ago

Originally posted by B. Du Bois:
But I would think that line 11 and 12 also won't compile, since they both declare a method 'void op()'... ?


I tested out the code, line 11 would compile. Line 12 wouldn't since the line before it already defined the op() method.
Thanks for the tips Venkatesh. I'm taking the exam VERY soon. A question: do most of the questions on threads include thread interaction? E.g. use of wait(), notify()

Originally posted by Michael Brandt:
Why not A? Aren't we forbidden to declare final methods in abstract classes?


Line 10 is perfectly compilable. So is line 11, because an abstract class can have both abstract & nonabstract methods. "Nonabstract methods" include final methods, so we're actually allowed to have final methods in abstract classes.
Well, congratulations! I'm taking the exam in 6 days & keeping my fingers crossed.
18 years ago
From javaprepare.com, questions on Language Fundamentals:
What happens when the following program is compiled and run? Select the one correct answer.

The correct answer is "The program prints 1".
Why is this so? An array is an object, so when it's passed into a method, the actual reference is modified, not a copy, right? If so, the answer should be "The program prints 2". At least that's what I think.
Oh, I just found out that it's simple after all! Thanks for your post, Vad, that helped!
Thanks for the help everyone. I'm okay with two's complement & bit shifting operations, but not conversion from hex/octal to bits.
...to know how to convert hexadecimal/octal numbers to bits, for the exam? Because I'm quite confused by those. I've came across practice questions requiring me to do so.
Oh, thanks for the enlightenment. I have came across quite a few questions (in books) on GC which have connections with String objects.
According to the Programmer Certification Study FAQ,

Primitive array types can never be assigned to each other, even though the primitives themselves can be assigned. ie., ArrayofLongPrimitives = ArrayofIntegerPrimitives gives compiler error even though longvar = intvar is perfectly valid.


Am I right to say that the following will cause a compiler error at line 3?