Meng Yi
The class must provide suitable implementation of the hashCode() and equals(Object
other) methods to simplify the management of the primary keys by the Container.
Exam 1Z0-817: Upgrade OCP Java 6, 7 and 8 to Java SE 11 Developer Study Guide and Quiz
Exam 1Z0-817: Upgrade OCP Java 6, 7 and 8 to Java SE 11 Developer Study Guide and Quiz
Asher Tarnopolski
SCJP,SCWCD
am i wrong?
posted December 29, 2003 03:55 AM
--------------------------------------------------------------------------------
A client can determine whether two entity beans are same by comparing their primary key using equals method. true or false?
Asher Tarnopolski
SCJP,SCWCD
Asher Tarnopolski
SCJP,SCWCD
Q 57 (p676) : C is mentioned as "true" : "If two entity object references are compared using the isIdentical() method, the container will return true if the two entity objects have the same primary key".
The conditions are same primary key *AND* same home, so it should be "false".
Asher Tarnopolski
SCJP,SCWCD
"If two entity object references are compared using the isIdentical() method, the container will return true if the two entity objects have the same primary key".
The conditions are same primary key *AND* same home, so it should be "false".
different home but same JNDI name?
By the way, looks like there is a separate forum for mock exam errata here. Not sure how many people actually use it.
Asher Tarnopolski
SCJP,SCWCD
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
|