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