Class
Object
Method
None of these
Abstraction
Encapsulation
Data hiding
Hiding complexity
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.
Behaviour
Situation
Composition
JVM
Source Code
Compilation
Bytecode
Program
High level Language
Inheritance
polymorphism
All of the above
Compile time
Run time
Both
None
Variables
Literals
Keywords
Punctuators
public
default
Both a and b
Procedure Oriented Programming
Modular Programming
Object Oriented Programming
.java
.class
Polymorphism
Identifier
Operator
Value
None of These
Method hiding
Hiding constructor
Explicit Type Conversion
Implicit Type Conversion
Both A and B
A=B+C;
A=8;
. (dot)
+ (plus)
– (minus)
/ (divide)
method overriding
method overloading
constructor overloading
operator overloading
obj1
1obj
Obj 1
Obj#1
At run time
At compile time
At coding time
At execution time
class Cat extends Animal
class Animal extends Cat
Both are correct way
None is correct way
Functions of the object
Data Members of the object
Content of an object
All of these
Simple Interest
SimpleInterest
1SimpleInterest
Simple@Interest
Wrapping data fields with methods
Hiding data and internal methods using access modifiers in a class
Using Interfaces
class
Operators
Identifiers
All of These
Member Functions
Data Members
Multiple inheritance for classes
multiple inheritance of interface
compile time polymorphism
Compile time polymorphism
Execution time polymorphism
Multiple polymorphism
Multilevel polymorphism
Punctuator
Variable
Separator
Function overriding
Function overloading