Write the default value of double and float datatype in in Java?

DWQA QuestionsCategory: JavaWrite the default value of double and float datatype in in Java?
Editor Staff asked 2 months ago

Write the default value of double and float datatype in in Java?

1 Answers
Editor Staff answered 2 months ago

The default value of float datatype in Java programming language is 0.0f.
The default value of double datatype in java programming language is 0.0d.