Core Java Interview Ques
Core Java Interview Ques
Package in java?
A package is a collection of similar types of Java entities such as classes, interfaces, subclasses,
exceptions, errors, and enums
Packages are used in Java in order to prevent naming conflicts, to control access, to make searching
6. What is WORA?
WORA or Write Once Read Anywhere, is the property of a language to run on any platform.
Java is allowed this property due to its bytecode nature.
18. OOPS
Object-Oriented Programming is a methodology to design a program using classes and objects
19. Inheritance
When one object acquires all the properties and behaviors of a parent object is known as inheritance.
It provides code reusability.
20. Polymorphism
if one task is performed in different ways is known as polymorphism.
example ; A student can learn , write, read, play, dance etc
21) Abstraction
Hiding internal details and showing functionality is known as abstraction.
For example phone call, we don't know the internal processing.
22. Encapsulation
Binding code and data together into a single unit are known as encapsulation.
For example, a capsule, it is wrapped with different medicines.