We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eeb766 commit 1021fc7Copy full SHA for 1021fc7
java-multiple-choice-questions-answers.md
@@ -388,4 +388,14 @@ D. Three
388
C. Two
389
390
Explanation: All three references point to the String apple. This makes the other two String objects eligible for garbage collection.
391
+```
392
+#### Q. Which of the following does not compile?
393
+A. double num = 2.718;
394
+B. double num = 2._718;
395
+C. double num = 2.7_1_8;
396
+D. None of the above; they all compile
397
398
399
+
400
+Underscores are allowed between any two digits in a numeric literal. Underscores are not allowed adjacent to a decimal point
401
```
0 commit comments