
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Core Java. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Answer : A
Explaination
The byte data type is represented by an 8-bit signed two's complement integer.
Minimum value: -128
Maximum value: 127
Answer : B
Explaination
The short data type is represented by 16-bit signed two's complement integer.
Minimum value: -32,768
Maximum value: 32,767
Answer : B
Explaination
short variable has default value of 0 if defined as an instance/static variable.
Q 4 - Which of the following is false about String?
B - String can be created using new operator.
Answer : C
Explaination
String is a object.
Q 5 - What is class variable?
A - class variables are static variables within a class but outside any method.
B - class variables are variables defined inside methods, constructors or blocks.
C - class variables are variables within a class but outside any method.
Answer : A
Explaination
Class variables are variables declared with in a class, outside any method, with the static keyword.
Q 6 - What is JRE?
A - JRE is a java based GUI application.
B - JRE is an application development framework.
C - JRE is an implementation of the Java Virtual Machine which executes Java programs.
Answer : C
Explaination
Java Runtime Environment is an implementation of the Java Virtual Machine which executes Java programs. It provides the minimum requirements for executing a Java application.
Q 7 - Static binding uses which information for binding?
Answer : A
Explaination
Static binding uses type information for binding.
Q 8 - What are Wrapper classes?
A - These are classes that allow primitive types to be accessed as objects.
B - These are classes that wraps functionality of an existing class.
Answer : A
Explaination
These are classes that allow primitive types to be accessed as objects. Example: Integer, Character, Double, Boolean etc.
Answer : A
Explaination
Deletion in linked list is fast because it involves only updating the next pointer in the node before the deleted node and updating the previous pointer in the node after the deleted node.
Q 10 - In which case, a program is expected to recover?
Answer : B
Explaination
A program is expected to recover if an exception occurs.