Win a copy of Rust Web Development this week in the Other Languages forum!

Paul Napauleon

Greenhorn
+ Follow
since Jul 20, 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 Paul Napauleon

I would do that by using css on the datatable. Give it a height property and a overflow-y: scroll.
13 years ago
JSF
do you think it's a good investment diving into the certification (looing at the future of webservices)?
is the certification still based on J2EE. I think its now based on JEE. In that case: is the RMH book still the way to go for preparation?
A HAS-A relationship can also be accomplished by a static variable right?
We use interfaces to keep the real implementation (of the concrete class) hidden for the software which uses the interface. Some software calls on (abstract) methods on an interface, without knowing how that interface is implemented. This principle is called "abstraction".

Methods which are defined abstract HAVE TO be implemented by a concrete class.
thank you for the good blog post. The post helped me getting more clarity about the subject.
the static int i is used in the first for loop. there is no new variable declared in the loop.
When i was doing the mock exam on java blackbelt, I encountered some questions about forward referencing. Examples are:



I studied the book from Bert Bates (java5), but I didn't find information aboud forware referencing. Are questions about forward referencing in the SCJP java5 exam? If the answer is yes: where can i find more info on this topic?
Hi,

this one is pretty tricky I think. The issue is that the sleep of both threads is invoked at the end, because the thread run concurrently and the sleep is not in the loop.

Thread one will loop and print and then sleeps, but in the mean time thread 2 does the same. When you put a print statement after the sleep statement, you will see that the threads do actually sleep.
Hi,

how did you get that output? When i run that code, the output is as follows:


As you can see the output is sorted (capitals before non-capitals) and there are no duplicate elements in the collection.


2- There should be at least one argument passed to the main
method so that assertion could fail and you get AssertionError as desired.

By combining these two, you can achieve the desired case.



I think that is not correct. when one or more arguments are passed, the condition evaluates true, so there's no error. When NO arguments are passed, the error will occur.

Regards, Paul
Congrats!!

too bad there aren't many drag-and-drop mock questions...
14 years ago
Hi,

it's hard to say and is different for everyone. I have to do the exam myself. In the faq of javaranch there is a line which states that when you have to much trouble making the mock exams, you should be ready to take the real exam.
Hi,

maybe you could be a bit more specific?

class Thread inherits from the interface Runnable (which declares a method run()). The class Thread has a default implementation of the method run(). When you want to do specific actions within your thread, you can override the run() method.

Does this answer your question?
I was in doubt about this question too, so I did some compiling research. When I change the matcher to "" (instead of "ab34ef"), the result is "0".

My conclusion about this: the matcher recognizes a last "" character.