Programming Languages Java Objective
Mar 02, 2013

Which is valid declaration of a float?

Choose the correct answer:
A) float f = 1F;
B) float f = 1.0;
C) float f = "1";
D) float f = 1.0d;
Detailed Explanation

Option A is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback