This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.

 
wood burning stoves
 
subject: Wrapper
 
Similar Threads
operator
Usage of :- int comapareTo(float f)
Invoking equals method on float object
Comparison of arrays
( int a = 2147483648 ) vs (int a = 2147483647 ; a=a+1 )