Java Basic Programs for Beginners
Java Basic Programs for Beginners - Important Points
6. | What is the output of the following program? public class Main { |
---|
A. H
B. e
C. W
D. o
View Answer Discuss Work SpaceAnswer: option c
Explanation:
7. | What is the output of the following program? public class Main { |
---|
A. 1
B. 0
C. Compile error
D. Runtime error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
8. | Which of the following is not a primitive data type in Java? |
---|
A. int
B. boolean
C. string
D. double
View Answer Discuss Work SpaceAnswer: option c
Explanation:
9. | What is the output of the following program? public class Main { |
---|
A. 1
B. 0
C. Compile error
D. Runtime error
View Answer Discuss Work SpaceAnswer: option a
Explanation:
10. | What is the output of the following program? public class Main { |
---|
A. 1
B. 2
C. 3
D. 5
View Answer Discuss Work SpaceAnswer: option a
Explanation: