Single Choice Easy

QWhat is the default value of a float datatype in Java?

ID: #22198 float - Data Type in Java 105 views
Question Info
#22198Q ID
EasyDifficulty
float - Data Type in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 0
  • B 0.0
  • C null
  • D undefined
Correct Answer

Explanation

The default value of a float datatype in Java is 0.0. If you declare a float variable without assigning a value to it, it will automatically be initialized to zero point zero.

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions