Hi i am rafiq,

What is the default value of float and double datatype in Java? Its my interview questions could anyone tell me the answer please..

Recommended Answers

Google would have found this for you in less than a minute. put some effort in …

Jump to Post

All 2 Replies

Google would have found this for you in less than a minute. put some effort in it.
anyway, if you don't know about this stuff, I would recommend against going to job interviews for Java development positions.

It's in the Java Language Specification - section 4.12.5 Initial Values of Variables.
Beware - there are different answers for local variables

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.