kris bako

Greenhorn
+ Follow
since Jul 28, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kris bako

Hello all,

there is obviously the rather expensive 5 day course in the 2000$ range.

But they also offer a Self Study CD <Creating Web Services Using Java Technology, Java EE 5>
for about 500 Euro.

Anyone used this CD as part of their study material for the Web Services exam and would like to share a
few words about as to what extend it is geared towards the Web Services exam requirements ?
Or in general, if it is a useful learning resource for designing Web Services ?

I have so far Ivan's book (great summary) and Java Sun's <Designing Web Services with J2EE 1.4 Platform>.

.many thanks
the API says that it will throw a RuntimeException. In this case look at the API at : NumberFormat's super class Format for the method : public final String format (Object obj). It says : Throws IllegalArgumentException, which is a RuntimeException. public final String format(Object o) will try to format a given Object as a number and I guess the reason it went into RuntimeException and not Compiler Error is that this exception can only be detected when the program is running this particular method.
what i found while preparing for this cert is, that understanding is not enough. you totally have to get it. this exam is different to any i have taken where you usually can get by with understanding the problem and knowing a little here and there. so you can go over the book as often as you like, but if you don't get it, nothing will happen.
for instance, when it came to the Exceptions, it all made sense to me reading through the material but if i would have asked myself honestly "can you answer any question related to this subject ?", i would have had to say "No". I only got through this with lots of coding and being able to answer exactly why every scenario worked the way it did.
i do not know how you can get to cert level in 20 days. having to learn all the APIs, especially when it comes to Collection, is a buckload.
when you get the first time into the public void run() the first Thread, which in my case has getID() = 8, ends with an ERROR.
at this point id is still 8, since it is only set once : in the main method.
But prior to ending the 1st Thread with ERROR, another Thread is created. In my case the second Thread has getID()=11.
Then you get to the if condition which is not met in this case, because id=8 (never changes) and the 2nd Thread has an getID() of 11.
So the if now reads (if i==2 AND 8==11) - which is not the case. So therefore it continues to print "2" and "3". And then end of game.
The E ansa say 'continues' - which it does, it does not say 'continues endlessly'.
initially it does but then it is overwritten by the Thread ID value of thread created with the
t1.start() statement in main, which creates a new Thread, therefore new Thread ID.
And yet another Thread ID value is created with the new Thread(new Salmon()).start().

you can easily follow the process with inserting print out statements in the code at each step, like :