This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!

Avander Be

Greenhorn
+ Follow
since Oct 16, 2007
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 Avander Be

Yes that's it.

Meanwhile I took the test and made it but only with a low score...
I was indeed surprised by the number of drag and drop questions. Many 'code' questions where quite longer and complicated also, I really ended up 'sprinting' thru the questions to finish them all.
I really was put off by those 'Apply all that fit' questions too and took the eXamulator mock exams. They state the number of options.
Hi Brian,

i'm old school programmer also with a Cobol and C background heading towards SCJP5 certification real soon now.

I started my studying early september using Head First Java followed by the K&B SCJP Study Guide.
12 years ago
Thanks guys, have a beer!
12 years ago
Hi all,

I've been taking several exams at eXamulator but I'm not sure if the level of the questions rivals with the real thing... what do you think?


To my surprise this compiles nicely, does the char gets promoted implicitly to a String or what kind of magic spell gets casted here?
12 years ago
Hi all,

I wondered if there's a way to take the exam provided on the cd otherwise than in the 'Choose all that apply'-mode?

I do realize that if one succeeds in this mode, the real thing will be easier but I feel that if the K&B study guide prepares for the real thing it should also provide the mock exams with the real 'look and feel' or at least give you the choice...
Hi guys,

Can those who took the exam recently confirm that the questions on the SCJP exam do NOT use the dreadfull 'choose all that apply' clause AND do give the number of expected answers?

If I may believe the K&B study guide they are ( which in my opinion makes a BIG difference)...

TIA
Back in business! Thanks a lot

Can't change topic subject to [solved] :-((.
[ October 16, 2007: Message edited by: Avander Be ]
12 years ago

Originally posted by Rob Prime:

You must have overlooked java.awt.List, but that's a GUI element


Yep, I did see it but figured out it was kinda 'out of scope' here :-)).

Originally posted by Rob Prime:
It's right that java.util.List is an interface. The Arrays class has an internal class that implements List and wraps arrays. An instance of this class is instantiated when you call Arrays.asList. You don't need to know the full name of the class, only that it implements List, and you cannot add or remove elements. All other List methods can be called without a problem.


It's just another 'polymorphism' trick isn't it?
12 years ago
Following code is based on code from K&B SCJP Study Guide p. 559.



I had to add the import and the <String> to List in order to compile.

What puzsles me is where did that List type come from?? The only List type I found in the Java doc is an... interface!
12 years ago
So you really have to dive in the String methods code to be sure...
12 years ago
Many thanks for the fast answers.

I do realize that one should not use == to compare strings, I just came accross this code in some mock exams and went completely haywire at answering them ( there where a whole bunch of them b*st*rds!).

So I was just curious to know how I could predict the result, just in case I meet that sort of question on D-day...

My rule of thumb was that this type of comparison should always turn false 'cause basically it compares the content of two independent string references. Hmm, not so independent after all, I guess that there's only one "String' string on the string pool and the JVM handed out the same reference twice??
12 years ago
Hi campers,

Heading for D-Day and still not getting all subtilities of the == operator...



This results in:


Strings are objects and since there's no assignment, just a method call on the strings, so I thought we're just comparing two different String references here, resulting in two 'Not Equal' outputting. Where's the catch?

TIA
12 years ago