Multiple choice

Which of the following are the main features of Java?

  1. Abstraction, inheritance, encapsulation, polymorphism

  2. Atomicity, polymorphism, interface

  3. Abstraction, inheritance, isolation

  4. Inheritance, encapsulation, durabilty

  5. Portability, consistency, durability

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The features of Java are described as follows: Abstraction: Hiding unnecessary details from the user. Inheritance: Maintaining a hierarchy and reusability of code. Encapsulation: Protecting the data of a class by providing access only through methods. Polymorphism: Using same name for performing different functions. For example,function overloading.