This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!

Ernesto Reig

Greenhorn
+ Follow
since Jan 11, 2012
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 Ernesto Reig

Budi Kurniawan wrote:Hi Venkat,
There's a chapter on application design, which covers the MVC pattern, dependency injection, connection pooling, etc.



Which other technologies you talk about in the book for this? Do you talk about Spring for dependency injection, Struts (or Spring MVC) for MVC? I mean you cover some frameworks for MVC pattern and DI or you just talk about the concepts themselves?

Thank you very much again.
7 years ago
Hello,
Reading the cover of the book it´s obvious that this book covers main topics of the Java EE 6 Web Component Developer Certification. But for those who are studying to get certified, can we consider this book as a "definitive" guide to study the certification? or is it more intended to be a jsp and servlets reference?

Thank you very much.
7 years ago
Hello everybody,
if you have a look at the question 57 in the first practice exam you'll find that the correct answer is C. However the explanation says "Because Stuff doesn't override equals()". This is actually true but it should say "Because Stuff doesn't override equals() and hashcode()". Because if the class Stuff doesn't override hashcode() as well, the objects are all different.
So let's imagine we override equals like this:

public boolean equals(Object obj) {
return this.value == ((Stuff) obj).value;
}

Even in this case, if we don't override the hashcode method, the set will add every new object in a different hashcode bucket and won't execute equals() against any other object. If we override the hashcode like this:

public int hashCode() {
return 4;
}

Even though this is a very inefficient override of the hashcode method (every object will be in the same bucket) the set will be able to compare the objects.

Regards!
7 years ago