Back to quizzes

Programming Quiz

Java

20 questions QCM No time limit
1 Who created Java?
2 In what year was Java created?
3 How to display text in Java?
4 How to declare a variable in Java?
5 How to create a single-line comment?
6 How to create an array?
7 How to create a class?
8 Which method returns the length of an array?
9 How to create a for loop?
10 How to create an if condition?
11 Which method adds an element to an ArrayList?
12 How to create a method?
13 Which keyword defines a constant?
14 How to create an object?
15 Which interface represents a collection?
16 How to handle an exception?
17 Which method converts a string to an integer?
18 How to create a thread?
19 Which method reads a file?
20 Which annotation marks a test method?
0 / 20 answered