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 about equals 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 "about equals" Watch "about equals" New topic

about equals

wei liu
Ranch Hand

Joined: Dec 06, 2001
Posts: 56
Float f=new Float("10F");
f.equals(new Float"10");(reture true)
is it a valid statement? i never seen this kind of statemnet before, what i saw is like f.equals(new Float("10F"))
Jim Hall
Ranch Hand

Joined: Nov 29, 2001
Posts: 162
One easy way to find out...Compile it
I agree. Here's the link:
subject: about equals
Similar Threads
Round up int
about Float and Double
List casting
doubt: equals&==
One doubt