Marco Piva

Greenhorn
+ Follow
since Aug 24, 2007
Merit badge: grant badges
For More
Italy
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 Marco Piva

310-092 is an upgrade exam for old versions of SCBCD owners.

If you're new to SCBCD, you should go for 310-091.
Not being sure i prefered to delete it, anyway it was:

"The problem is that in the first code you're trying to modify a Basket object using the "? extends" wildcard.

When using either <? extends Class> or <?> wildcard, the collection can be accessed but NOT modified (compilation error).

When using a wildcard, List<? super Class>, the collection can be accessed AND modified."
The real test ALWAYS tells you how many answers to choose.
There are no "choose all that apply" questions.
Read the "Introduction/Taking the Programmer's Exam" section of K&B where this is explained.
[ October 03, 2008: Message edited by: M. Piva ]
Any currency character is valid.

int �a = 1;

and

int �a = 1;

are valid.
The hashCode method defined by class Object does return DISTINCT integers for distinct objects.

If you don't override it you don't satisfy the hashCode contract (because different objects can be equal, and in this case their hashCode() methods should return the same value), and you are not able to locate an object in the hashtable, unless you maintain a reference to the original object.
[ September 26, 2008: Message edited by: M. Piva ]
Static methods are class methods, so they don't care if the reference variable points to null.

In this case:

an.prt();

is equivalent to:

An.prt();
IMHO the correct answer is:

3) Garbage collection is implementation dependent
I confirm.
In Italy now is 282 � (was 252 �).
The superclass is not part of the object graph.
Otherwise, when you try to serialize an object of a serializable class that extends a non-serializable class, would get a java.io.NotSerializableException
[ August 29, 2008: Message edited by: M. Piva ]