Menu
Question Index
...

Identify the correct statement?

  • 1. double d1 = 200.0;
  • 2. double d2 = 2E+2;
  • 3. double d3 = 0.02E4;
  • 4. double d4 = 20000e-2;


All the above expressions are correct and have the same value 200.0.
Expressions 2, 3, 4 lead to compilation errors.
Expression 3 leads to compilation errors.
Expression 4 leads to compilation errors.

Doubts

Problems

Topic: Floating Point Literals In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App