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. What type of variable can be defined in an interface?

public static
private final
public final
static final

2. Which method returns the start index of the previous match?

public int start(int group)
public int end()
public int end(int group)
public int start()

3. Which of the following personality is called as father of Java Programming language -

James Gosling
Larry Page
Bjarne Stroustrup
None of these

4. Which exception is thrown when divide by zero statement executes?

NumberFormatException
NullPointerException
ArithmeticException
None of these

5. Standard output variable "out" is defined in which class?

Void
Process
Runtime
System

6. Which of the following is smallest integer data type ?

int
byte
short
long

7. When is the Float object, created in line 3, eligible for garbage collection?

  
public Object m()
{
	Object o = new Float(3.14F);
	Object [] oa = new Object[l];
	oa[0] = o; /* Line 5 */
	o = null; /* Line 6 */
	oa[0] = null; /* Line 7 */
	return o; /* Line 8 */
}

just after line 5
just after line 6
just after line 7
just after line 8

8. Which of these data types is used to store command line arguments?

Array
Stack
String
Integer

9. Which cannot directly cause a thread to stop executing?

Calling the SetPriority() method on a Thread object.
Calling read() method on an InputStream object.
Calling notify() method on an object.
Calling the wait() method on an object.

10. Java is case sensitive?

True
False
Depends On Complier
May be true or false

Results