Erap Estrada

Ranch Hand
+ Follow
since Nov 08, 2006
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Erap Estrada

Hey guys.

I've been out of the IT industry close to two years now and I'm having a hard time landing a job.

I'm taking an SCJP exam at the end of the month that I'm hoping it will help.

BUT, after that what's your advice on the next certfication should I take?

What are the skills that you feel are in demand now or at least in the near future.

Database? SCWD?

Thanks for the advice!
12 years ago

Henry Wong wrote:
But it comes with a price, since your method must work with any type, and you don't know the generic type (except to say that it extends container). How can you add anything? You can only add items that satisfies all possible types supported by your method, and that is only null.


But changing the above line to this compiles fine:

It's still many possibilities right?

So you're saying that you can add an object to that original list object creation but not within this method?

What type or subtypes can you add inside this method?

You can read only?

The book says you can't add it in the line below. Why? Where can you add new object then?

Thanks for helping me out.

I'm playing around some code, and got this:

The result is this:


Why is this the result? Or it should vary? It doens't say in the API that it should return a sorted Set or something.

Thanks for the help.
First question, from Oracle site it says I don't need to buy a voucher. I can just register to prometrix, is that right?

Second question, how come Whizlabs is still selling a voucher for only USD250? Is this legit? Can I use this voucher here in Canada?

In the S&B Book in page 578, it says...

When solving searching and sorting questions, two big gotchas are:

1. ... [this part is clear]
2. Using a Comparator in either the sort or the search, but not both.

You need the same comparator that you use in sorting to search it right? So you need it for both transaction.

Can someone please clarify the sentences quoted?

Thank you in advance.

Great. Thanks guys for the clarification.

Results are:

four one three two
one = 1
--- reverse ---
two three one four
one = -1
one = 2

Why "-1"?
Great questions and great answers. Thanks a lot guys!
I noticed in Java 6 API that the interface "Set" extends another interface "Collection".

I just thought you can't extend an interface but should be IMPLEMENTED ONLY.

Can anyone clarify this java rule?

Thanks a lot!
Hi guys. I just wonder what's more effective in terms of review.

Let's say after reading a chapter and take the self-quiz (which you miserably failed) you realized that you missed some important concept.

Should you move on to the next chapter and review it later or go back again and re-read it?


The output for that code is 6 and 11. BUT if you put space between the closing parenthesis and the plus (+) sign in line 1 the output is just 11.

My question is, how critical this spaces in the exam? This can be really tricky.


String s = new String ("abc");

In this case, because we used the new keyword, Java will create a new String object in normal (nonpool) memory, and s will refer to it. In addition, the literal "abc" will be placed in the pool.

What's a nonpool memory? How come there are two object from the above line of code?

Thanks guys!
Hi Guys.

I'm reviewing for SCJP 6 Using Kathy and Berth Book.

Where can I find mock exams that's targeting ONLY the lessons learned in a certain chapter of the book?

Online, the mock exams are combination of every topic in the book but I'm still in chapter 3.