Float f1 = new Float("1e1f"); //Line 1 Float f2 = new Float(".1e1d"); //Line 2
What are "1e1f" and ".1e1d"? Why does this code compile just fine and return 1.0 1.0 if we print f1 and f2 printed? Please help, I feel weak in this area! Possibility of NumberFormatException in such questions makes me feel confused.
Source of question: The question is excerpt from one of the Danchisholms question collection of Wrapper classes.