Open In App

GATE | GATE CS 2020 | Question 32

Why Java is Partially OOP language?
(A)

It allows code to be written outside classes



(B)

It supports usual declaration of primitive data types
 



(C)

It does not support pointers

(D)

It doesn’t support all types of inheritance


Answer: (B)
Explanation:

As Java supports usual declaration of data variables, it is partial implementation of OOP. Because according to rules of OOP, object constructors must be used, even for declaration of variables.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :