Thanks for the welcome. I think I get it now. Here is the question that I was having problems with (p. 48, #9 if you have the
JAVA 2 book by Sierra and Bates).
Which of these are valid delarations of a float? (Choose three.)
A. float f1 = -343;
B. float f2 = 3.14;
C. float f3 = 0x12345;
D. float f4 = 42e7;
E. float f5 = 2001.0D;
F. float f6 = 2.81F;
Answer: A, C, F
I now know why B is not an answer. It would be right if there was a F behind the number.
The book says that B, D, and E are all doubles.