This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Programmer Certification (SCJP/OCPJP)
puzzle about equals
Joined: Jul 01, 2002
Aug 21, 2002 01:23:00
Integer i= new Integer(4);
if i use i.equals(4),what process will do?
Joined: Aug 26, 2001
Aug 21, 2002 02:12:00
i.equals(4) will not compile because the equals method only accepts Objects and not primitive values.
SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
My Linked In
subject: puzzle about equals
Integer and Integer object
only 8 days for exam.....
Wrapper classes are immutable?
pass by reference
Immutable Wrapper Class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014