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