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.
The byte data type is represented by an 8-bit signed two's complement integer.
Minimum value: -128
Maximum value: 127
The float data type is represented by single-precision 32-bit IEEE 754 floating point.
Short variable has default value of 0 if defined as an instance/static variable.
Q 4 - Which of the following is false about String?
String is a object.
Q 5 - What is Abstraction?
It refers to the ability to make a class abstract in OOP. It helps to reduce the complexity and also improves the maintainability of the system.
Q 6 - What is Set Interface?
Set is a collection of element which cannot contain duplicate elements. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited.
Q 7 - Dynamic binding uses which information for binding?
Dynamic binding uses object information for binding.
Q 8 - What are Wrapper classes?
These are classes that allow primitive types to be accessed as objects. Example: Integer, Character, Double, Boolean etc.
It is not necessary that each try block must be followed by a catch block. It should be followed by either a catch block or a finally block.
Q 10 - Which of the following is a marker interface?
serializable is a marker interface.