Online Examination – Java

Question 1

Who developed the Java programming language?

Question 2

Which of the following is the correct file extension for a Java program?

Question 3

Which method is the entry point of a Java program?

Question 4

Which of the following is not a Java feature?

Question 5

Which keyword is used to create an object in Java?

Question 6

Which data type is used to store true or false values in Java?

Question 7

What is the size of int data type in Java?

Question 8

Which loop is guaranteed to execute at least once?

Question 9

Which of the following is used for exception handling in Java?

Question 10

Which collection class does not allow duplicate elements?

1
2
3
4
5
6
7
8
9
10