Geoffrey Vlassaks

Greenhorn
+ Follow
since May 12, 2004
Merit badge: grant badges
For More
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 Geoffrey Vlassaks

Never mind, have found it :-)
Hi,

Does anybody know the correct answers for the exercise on page 353 in hfejb?

Thx
Two days ago I passed for the SCWCD exam. However, I'm not happy about the exam itself. There are to much errors in the possible answers you can select. Here are some examples:
I've got a question about classic tag handlers. A piece of code was given, and you had to fill in the missing lines of code of a tag that does some looping over the body. You had to select one of the four possible answers. All the answers contained a SKIP_BODY or a EVAL_BODY_AGAIN for the doStartTag?!

Another example where I had to select 2 required tags in the <web-resource-collection>. One of them was <web-resource-name>. The rest where non existing tags, so I selected <uri-pattern> which has to be <url-pattern>.

The result of this is that you start having doubts about the other answers in the other questions. People pay 150$ for an exam. At least you can expect for that amount of money is that you have an exam without errors. Anybody else had some experience with this kind of problems? Where can you report those errors?

Best regards
18 years ago
No way that doAfterBody() gets executed when doStartTag() returns SKIP_BODY.

Does anybody know if there's a way to report those errors to sun?
Hi all,

Yesterday I passed for the exam. However, I'm not happy about the exam itself. There are to much errors in the possible answers you can select. Here are some examples:
I've got a question about classic tag handlers. A piece of code was given, and you had to fill in the missing lines of code of a tag that does some looping over the body. You had to select one of the four possible answers. All the answers contained a SKIP_BODY or a EVAL_BODY_AGAIN for the doStartTag?!

Another example where I had to select 2 required tags in the <web-resource-collection>. One of them was <web-resource-name>. The rest where non existing tags, so I selected <uri-pattern> which has to be <url-pattern>.

The result of this is that you start having doubts about the other answers in the other questions. People pay 150$ for an exam. At least you can expect for that amount of money is that you have an exam without errors. Anybody else had some experience with this kind of problems?

Best regards
Hi,

Yesterday I passed the exam with 93%. I missed 4 questions.

However, there was one question about Strings that had a fault in the syntax. The System.out.println was incorrectly spelled. So at first sight, it was a compiler error but that was no option in the answers. Does anyone have had this problem before?

Next I want to go for the SCWCD, but my boss is not convinced. He says that only the programmer and the architect are important. So any good argument for the Web Component and the Business Component are very welcome..

Thx
19 years ago
Hi,

After line 4, the String "Batman" will be eligible for GC. After line 6, myString still refers to "Robin", so this is not eligible for GC.

The second code block has te same result..

greetz,
Hi,



After the append, the object where "sb" references to has a value of "bbbaaabbb". "sb = null;" removes the reference to that object, but the original "sb" (that one in the main method) still refers to that object. The whole clue is, that when you pass an object as an argument to a method, you pass a copy of the reference to that object. So by setting the copy reference to null, doesn't mean that the original will be set to null..

Greetz,
Hi,

The code works as follows:

In the Mobile constructor, you first have an implicit call to the Phone constructor. The Phone constructor does a call to "showDevice()". Since this is overridden, the method in the Mobile class will be taken (polymorphism). The method calls "System.out.print("Mobile.showDevice," + device + " ");". Because the instance variable "device" isn't initialised yet, it will print null. At this point you leave the Phone constructor and go back to the Mobile constructor. Now the instance variables are initialised. Next it will go again into "showDevice()". But this time the value of "device" will be "Mobile.device". To end, it will go again into the "showDevice()" method with the same result as the last print statement.

Greetz
Hi,



I'll print the values of i:
On the line "i = i++ + m(i);", you will get i = 0 + m(1); //m prints 1 and returns 0.
The next line will have a value of: System.out.print(0);

Greetz
Hi Anand,

Yes you can, even for return statements like the following code:



The value of "s" after this piece is "catch exception"

Greetz
Hi,

I think that the special cases are the ones where the JVM stops running. For example when you get an OutOfMemoryException. It doesn't make sence to run finally, when the entire system is out of memory..

Greetz
Hi,

Read this if it's not 100% clear..

Greetz
Hi,

That's because -129 is out of the range of a byte. It can only do implicit casting within the range of it's type. In this case from -128 to 127..

Greetz