Java - Data Types - Interview Questions and Answers on Float

Q1.  Which is the Wrapper classes available for float ?

Ans. java.lang.Float

Q2.  What is the default assigned value for float ?

Ans. 0.0f

Q3.  What is the difference between float and double?

Ans. Float can represent up to 7 digits accurately after decimal point, where as double can represent up to 15 digits accurately after decimal point.

Q4. Which interfaces are implemented by Float?

Ans.[, Serializable, Comparable<Float>]

Q5. What is the package name for Float class?

Q6. Which is the Parent Class of Float class?