This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Wrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Wrapper" Watch "Wrapper" New topic
Author

Wrapper

Shiva Mohan
Ranch Hand

Joined: Jan 05, 2006
Posts: 477



does this f1 float value is promoted to double value for equlas() method evaluation
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
No, it doesn't convert the Floats to a double.

This is from the source code for Float.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wrapper
 
Similar Threads
Usage of :- int comapareTo(float f)
Invoking equals method on float object
operator
( int a = 2147483648 ) vs (int a = 2147483647 ; a=a+1 )
Comparison of arrays