Java Bits
Java Bits
Java Bits
Encapsulation is principle [ ]
A) Which allows any object to derive and reuse the characteristics of another object
B) which facilitates the object to hide its implementation and expose only the interfaces
C) which allows any object to expose only the object attributes
D) which makes any object to behave differently depending upon the input object or the
calling object
2. Which is the process by which one class acquires the properties of another class?
A ) Abstraction B ) inheritance C ) class D ) polymorphism [ ]
5. A class that inherits from more than one super class can also be defined. This is called
A ) multiple B ) multilevel C ) hierarchical D ) single [ ]
6. “shape” is the root class, polygon is derived class from “shape” class “polygon” is the
super class for “triangle” this is called [ ]
A ) multiple B ) multilevel C ) hierarchical D ) single
8. Process of defining the methods with the same name and signature in derived class
which already exist in the base/parent class [ ]
A ) Inheritance B ) early binding C ) method overriding D ) composition
10. Which of the following is used to create the user defined data type [ ]
A) Object B ) system C ) class D ) none
6. Object is__________________.
7.Ploymorphism means____________________.
12.Array is ________________.