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.
2 parents 94e3e24 + 4ccb582 commit 22e945bCopy full SHA for 22e945b
java-multiple-choice-questions-answers.md
@@ -41,6 +41,8 @@ D. int num1 = 0, num2 = 0;
41
```
42
A. double num1, int num2 = 0;
43
44
+**Explanation**: A. Option A does not compile because Java does not allow declaring different types as part of the same declaration.
45
+
46
## Q. What is the output of following program?
47
```java
48
public class Test {
@@ -214,15 +216,6 @@ Output
214
216
a : 2
215
217
J : 2
218
-## Q. Which of the following declarations does not compile?
-A. double num1, int num2 = 0;
219
-B. int num1, num2;
220
-C. int num1, num2 = 0;
221
-D. int num1 = 0, num2 = 0;
222
-```
223
224
225
-**Explanation**: A. Option A does not compile because Java does not allow declaring different types as part of the same declaration.
226
227
## Q. What is the output of the following?
228
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments