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. Thread priority in Java is?

Integer
Float
double
long

2. Evaluate the value of the expression?

  
		   6 - 2 + 10 % 4 + 7
		   

14
12
13
10

3. _________ are a sequence of characters.

Character
Strings
Integer
Classes

4. Which of these coding types is used for data type characters in Java?

ASCII
ISO-LATIN-1
UNICODE
None of the mentioned

5. In Java, a sequence of data is known as a stream.

TRUE
FALSE
Can be true or false
Can not say

6. Which of the following will produce an answer that is closest in value to a double, d, while not being greater than d?

(int)Math.abs(d);
(int)Math.max(d);
(int)Math.min(d);
(int)Math.floor(d);

7. The && and || operators

Compare two boolean values
Compare two numeric values
Combine two boolean values
Combine two numeric values

8. 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

9. ObjectFilter is a member of java.io package.

TRUE
FALSE
Can be true or false
Can not say

10. Local variables are declared in?

methods
constructors
blocks
All of the above

Results