Java Quiz | Software Testing Material

Welcome to your Java Quiz. This quiz consists of 25 multiple-choice questions. There is no negative marking in this. Click on NEXT button to Start this Java Quiz.

1. If you want your condition to depend upon 2 conditions both being true, what is the proper notation to put between the two Boolean statements
2.

The class whose properties are inherited are is known as
i. Sub class
ii. Super class
iii. Base class

3.

Which statement is correct

4.

What is the size of a char in Java

5.

Which of the following is not a part of OOPs

6.

What is the correct syntax for java main method?

7.

Data hiding is also known as

8.

Static methods cannot be accessed directly from the class level

9.

An object could be

10.

Java keywords are written in lowercase as well as upper case

11.

Who is known as the founder of Java

12.

Java runs on which platform

13.

What is the default value of the local variables?

14.

Can you save the java source file without any name (say ".java")?

15.

The class which inherits the properties of other is known as
i. Super class
ii. Sub class
iii. Derived class

16.

Can you compare between the boolean and int primitive data types?

17.

Runtime polymorphism can be achieved by data members

18.

When a class is based on another class, it inherits

19.

Which of the following is not a Java keyword

20.

An object that has more than one form is referred to as

21.

Choose the appropriate data type for this value 9.9

22.

An object which has no referrence is known as annonymous object

23.

What are the two common characteristics shared by all objects in Java?

24.

Can we have any number of classes in a Java source file

25.

Annonymous object can be used at the time of object creation only


Java Quiz – You can test your knowledge with this Java Quiz. We have created this Java Quiz Online Test to help you master Java.

Knowledge Base:

Rajkumar SM is a founder of SoftwareTestingMaterial. He is a certified Software Test Engineer by profession and blogger & youtuber by choice. He has an extensive experience in the field of Software Testing. He writes here about Software Testing which includes both Manual and Automation Testing. He loves to be with his wife and cute little kid 'Freedom'.

Leave a Comment

Share via
Copy link
Powered by Social Snap