Single Choice Easy

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

ID: #22199 double - Data Type in Java 102 views
Question Info
#22199Q ID
EasyDifficulty
double - 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

In Java, the default value of a double datatype is 0.0. If you declare a double variable without initializing it explicitly, it will be set to zero point zero by default.

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions