.java
.class
Both a and b
None of these
Polymorphism
Encapsulation
Abstraction
Inheritance
Data hiding
Composition
polymorphism
All of the above
Hiding complexity
Method hiding
Hiding constructor
None
One object is used to create one class.
One class is used to create one object.
One object can create many classes.
One class can create many objects.
Wrapping data fields with methods
Hiding data and internal methods using access modifiers in a class
Using Interfaces
JVM
Source Code
Compilation
Bytecode
Program
High level Language
Object
method overriding
method overloading
constructor overloading
operator overloading
Functions of the object
Data Members of the object
Content of an object
All of these
Procedure Oriented Programming
Modular Programming
Object Oriented Programming
public
default
class
Compile time polymorphism
Execution time polymorphism
Multiple polymorphism
Multilevel polymorphism
. (dot)
+ (plus)
– (minus)
/ (divide)
Behaviour
Situation
Function overriding
Function overloading
Compile time
Run time
Both
class Cat extends Animal
class Animal extends Cat
Both are correct way
None is correct way
Member Functions
Data Members
Class
Method
At run time
At compile time
At coding time
At execution time
Multiple inheritance for classes
multiple inheritance of interface
compile time polymorphism