DEV Community

Deepika K
Deepika K

Posted on

Is JAVA 100% Object Oriented Programming Language?

Is Java 100% Object-Oriented?

No, Java is not a 100% Object-Oriented Programming language.

Why Java is Not 100% OOP

Primitive data types
Static variables and methods
Static main() method

1. Primitive Data Types

Java has primitive types like int, char, boolean, and double.
These are not objects.

eg: int x= 10;
If Java were completely object-oriented, numbers would be objects like this:

Integer x = new Integer(10);
2. Static Members

Java has static variables and methods.
They belong to the class, not to objects.
They can be used without creating an object.

3. Static main() Method

The program starts from the main method, which is static.
public static void main(String[] args)
So the JVM can run the program without creating an object.

Top comments (0)