Java Programming Quiz


Play this Java quiz that will help you to excel in Java certification exams, placements etc. This Java programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This Java programming test enables you to assess your knowledge of Java programming.

Take the Free Practice Test



Java MCQs

Practice Java MCQ Questions, which will help you to understand Java programming related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

Java Quiz

Try Free Java Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

Java Quiz

1. How many types of JDBC drivers there?

3
4
5
6

2. Which of these literals can be contained in float data type variable?

-1.7e+308
-3.4E+38
+1.7e+308
-3.4E+50

3. Which of these is correct way of inheriting class A by class B?

class B + class A {}
class B inherits class A {}
class B extends A {}
class B extends class A {}

4. Which of these statements is correct?

true and false are numeric values 1 and 0
true and false are numeric values 0 and 1
true is any non zero value and false is 0
true and false are non numeric values

5. Which method causes the audio clip to replay continually?

public void play()
public void loop() 
public void stop()
None of the above

6. What will be output for the following code?

  
class Test {
	public static void main(String args[]) {
		int arr[] = new int[2];
		System.out.println(arr[0]);
		System.out.println(arr[1]);
	}
}

0 0
garbage value garbage value
Compiler Error
Exception

7. What is the syntax of a continue is a single statement inside any loop?

Jump
Continue
Con
State-Continue

8. jar stands for _____________.

Java Application Runner
Java Archive
Java Archive Runner
None of these

9. Which of these is long data type literal?

0x99fffL
ABCDEFG
0x99fffa
99671246

10. Java SE 15 version released on?

March 19, 2019
March 17, 2020
September 17, 2019
September 15, 2020

Results