ava is not an entirely pure object-oriented programming language. The following are the reasons:
* Java supports and uses primitive data types such as int, float, double, char, etc.
* Primitive data types are stored as variables or on the stack instead of the heap.
* In Java, static methods can access static variables without using an object, contrary to object-oriented concepts.
Posted Date:- 2021-09-29 22:23:08