Home           J2EE Concepts           JMS           Java Language           Contact           Back           Next           Bookmark this Page          










Some useful tips related to:
 - health & fitness
 - vehicle care
 - cooking
 - misc household tasks

Is Java purely Object Oriented?


... and the answer is somewhat different that what we might have come across during early days of moving towards Java. The answer is "NO".

A truly object oriented language would assume that everything must be defined in terms of objects ( by everything i am talking about the data). However in Java, one may use primitive data types for storing data i.e. use variables of type int, boolean, char etc.

The purpose behind keeping these primitive data types available in Java, is Performance. With objects there is alwasy associated overhead of object memory management. This includes instantiation, finallizaion, garbage collection etc.