Why Java is Partially OOP language?

Why Java is Partially OOP language?(b) It does not support pointers(d) It doesn't support all types of inheritance(a) It allows code to be written outside classes(c) It supports usual declaration of primitive data types

Options

  • A. It does not support pointers
  • B. It doesn't support all types of inheritance
  • C. It allows code to be written outside classes
  • D. It supports usual declaration of primitive data types

Correct Answer (Detailed Explanation is Below)

D. It supports usual declaration of primitive data types

Detailed Explanation

Explanation:

A pure OOP language treats everything as an object.

In Java, primitive data types like:

  • int

  • float

  • char

  • boolean

are not objects. They are basic data types.

Because Java allows the use of primitive data types (instead of making everything an object), it is considered partially OOP, not purely OOP.

OOps! You are currently offline.