Question: What will happen to the following code Double a; a = 9 3 0 0 0 . 0 A Double object is created and value

What will happen to the following code
Double a;
a=93000.0
A Double object is created and value 93000 is stored in the object, the object's
reference is stored in a
Syntax error, type should be double, not Double
run time error, value 93000 cannot be assigned to an object reference variable
a Double object is created and stored at memory address 93000
What will happen to the following code Double a;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!