Question
Which assignment is correct in Java?a. double money = 12;b. double money = 12.0;c. double money = 12.0d;d. All of these are correct.
Step 1
In this case, the data type is `double`, which is used to represent decimal numbers in Java. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD