Core Java Question Bank (Set-2)
Core Java Question Bank (Set-2)
Core Java Question Bank (Set-2)
(SET-2)
1) What is meant by Object Oriented Programming?
OOP is a method of programming in which programs are organized as cooperative
collections of objects. Each object is an instance of a class and each class belong to a
hierarchy.
2) What is a Class?
Class is a template for a set of objects that share a common structure and
a common behavior.
3) What is an Object?
Object is an instance of a class. It has state, behaviour and identity. It is also
called as an instance of a class.
4) What is an Instance?
An instance has state, behaviour and identity. The structure and behaviour of
similar classes are defined in their common class. An instance is also called as
an object.
5) What are the core OOP’s concepts?
Abstraction, Encapsulation, Inheritance and Polymorphism are the core
OOP’s concepts.
6) What is meant by abstraction?
Abstraction defines the essential characteristics of an object that distinguish it
from all other kinds of objects.
7) What is meant by Encapsulation?
Encapsulation is the process of compartmentalising the elements of an abstraction
that defines the structure and behavior. Encapsulation helps to separate the
contractual interface of an abstraction and implementation.
8) What are Encapsulation, Inheritance and Polymorphism?
Encapsulation is the mechanism that binds together code and data it
manipulates and keeps both safe from outside interference and misuse. Inheritance is
the process by which one object acquires the properties of another object.
Polymorphism is the feature that allows one interface to be used for general class
actions.
9) What are methods and how are they defined?
Methods are functions that operate on instances of classes in which they are defined.
made until the object is created at execution time. It is also called as Late binding.