Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what makes java not pure object oriented language? [closed]

Tags:

java

I think java is pure object oriented, but in real it is not. But i dont know why java is not pure object oriented language, please help me to find out the reason.

like image 817
Pushpendra Kuntal Avatar asked May 27 '11 11:05

Pushpendra Kuntal


2 Answers

This is a homework question, right?

Primitive types, that's why. For instance try this:

int i = 42;
System.err.println(i.toString());
like image 179
Rom1 Avatar answered Oct 07 '22 00:10

Rom1


The usual objection is that Java is not "purely" OO because it has primitive types (int, double, etc.), which are not objects.

like image 21
JB Nizet Avatar answered Oct 06 '22 23:10

JB Nizet