Home / Questions / What is the default value of float and double datatype in Java?
Explanatory Question

What is the default value of float and double datatype in Java?

👁 986 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Default value of float and double datatype in different as compared to C/C++. For float its 0.0f and for double it