This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Errata pg563 K&B Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Errata pg563 K&B "SCJP for Java 5 Study Guide Watch "Errata pg563 K&B "SCJP for Java 5 Study Guide New topic
Author

Errata pg563 K&B "SCJP for Java 5 Study Guide'

Harry Henriques
Ranch Hand

Joined: Jun 17, 2009
Posts: 206
[ == ] tests to see if both names refer to the same object.



[ equals ] tests to see if both names are "meaningfully equivalent"




example below demonstrates code errata




C:\Documents and Settings\Harry Henriques>javac Dog.java

C:\Documents and Settings\Harry Henriques>java Dog
false
 
Consider Paul's rocket mass heater.
 
subject: Errata pg563 K&B "SCJP for Java 5 Study Guide'
 
Similar Threads
Problem faced in using hashset(comparison of equal elements)
Please help
Comparing Maps hashcodes problem??
HashMap