Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Is java a pure object oriented language?

user-image
Question ajoutée par himanshu mittal
Date de publication: 2013/07/05
Daanish Rumani
par Daanish Rumani , Product Manager , Publicis Sapient

It isn't.
A language like Smalltalk may be called pure object oriented language.
Java has native data types like int, float, etc.
that are not objects themselves.
On the other hand Smalltalk does not have native types.
You would be surprised to know that in Smalltalk even the class is an object.
The way to instantiate a new object of the class is to call a method on the class object!

Belal El-Berry
par Belal El-Berry , Senior Application Developer , Dataserve

Yes we can say that it is pure object oriented from the prespective of wrapper classes but you still have primitives and they kept it for performance concerns.

Utilisateur supprimé
par Utilisateur supprimé

Yes.
You dont need to use primitives.
Use Wrapper classes.

More Questions Like This