ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ JAVA - JAVA OBJECT ORIENTED PROGRAMMING MCQ Questions
English
Hindi
Question No. -
01
Report Bug
Which of the following is not OOPS concept in Java?
निम्नलिखित में से कौन जावा में OOPS अवधारणा नहीं है?
निम्नलिखित में से कौन जावा में OOPS अवधारणा नहीं है?
A.
Inheritance
Inheritance
B.
Encapsulation
Encapsulation
C.
Polymorphism
Polymorphism
D.
Compilation
Compilation
Explanation
There are 4 OOPS concepts in Java. Inheritance, Encapsulation, Polymorphism and Abstraction.
Question No. -
02
Report Bug
Which of the following is a type of polymorphism in Java?
Which of the following is a type of polymorphism in Java?
A.
Compile time polymorphism
Compile time polymorphism
B.
Execution time polymorphism
Execution time polymorphism
C.
Multiple polymorphism
Multiple polymorphism
D.
Multilevel polymorphism
Multilevel polymorphism
Explanation
There are two types of polymorphism in Java. Compile time polymorphism (overloading) and runtime polymorphism (overriding).
Question No. -
03
Report Bug
When does method overloading is determined?
When does method overloading is determined?
A.
At run time
At run time
B.
At compile time
At compile time
C.
At coding time
At coding time
D.
At execution time
At execution time
Explanation
Overloading is determined at compile time. Hence, it is also known as compile time polymorphism.
Question No. -
04
Report Bug
Which concept of Java is a way of converting real world objects in terms of class?
जावा की कौन सी अवधारणा वास्तविक दुनिया की वस्तुओं को वर्ग के संदर्भ में परिवर्तित करने का एक तरीका है?
जावा की कौन सी अवधारणा वास्तविक दुनिया की वस्तुओं को वर्ग के संदर्भ में परिवर्तित करने का एक तरीका है?
A.
Polymorphism
Polymorphism
B.
Encapsulation
Encapsulation
C.
Abstraction
Abstraction
D.
Inheritance
Inheritance
Explanation
Abstraction is the concept of defining real world objects in terms of classes or interfaces.
Question No. -
05
Report Bug
Java object oriented programming concepts is/are
Java object oriented programming concepts is/are
A.
Encapsulation
Encapsulation
B.
Inheritance
Inheritance
C.
polymorphism
polymorphism
D.
All of the above
All of the above
Question No. -
06
Report Bug
Java does not support _______________
Java does not support _______________
A.
Inheritance
Inheritance
B.
Multiple inheritance for classes
Multiple inheritance for classes
C.
multiple inheritance of interface
multiple inheritance of interface
D.
compile time polymorphism
compile time polymorphism
Explanation
Java does not support multiple inheritance for classes but in java multiple inheritance behavior is implemented using interfaces.
Question No. -
07
Report Bug
Runtime polymorphism feature in java is
Runtime polymorphism feature in java is
A.
method overriding
method overriding
B.
method overloading
method overloading
C.
constructor overloading
constructor overloading
D.
operator overloading
operator overloading
Explanation
Since in method overriding both the classes(base class and child class) have same method, compile doesn’t figure out which method to call at compile-time. In this case JVM(java virtual machine) decides which method to call at runtime that’s why it is known as runtime or dynamic polymorphism.
Question No. -
08
Report Bug
Encapsulation concept in java is
Encapsulation concept in java is
A.
Hiding complexity
Hiding complexity
B.
Method hiding
Method hiding
C.
Hiding constructor
Hiding constructor
D.
None
None
Question No. -
09
Report Bug
Following concept can be used for encapsulation in java programs
Following concept can be used for encapsulation in java programs
A.
Wrapping data fields with methods
Wrapping data fields with methods
B.
Hiding data and internal methods using access modifiers in a class
Hiding data and internal methods using access modifiers in a class
C.
Using Interfaces
Using Interfaces
D.
All of the above
All of the above
Explanation
Encapsulation means, hiding the complexities in java programs. All options above are used to implement encapsulation in java object oriented programming.
Question No. -
10
Report Bug
Exposing only necessary information to clients ( main programs, classes) is known as
Exposing only necessary information to clients ( main programs, classes) is known as
A.
Abstraction
Abstraction
B.
Encapsulation
Encapsulation
C.
Data hiding
Data hiding
D.
Hiding complexity
Hiding complexity
1
2
3
4
5
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad