Java Java Basics Perfecting the Prototype Reviewing Our Feedback

Object Data Types

What is object data types and how do they differ from primitive data types?

1 Answer

David Grimm
David Grimm
12,532 Points

Primitive data types are basically just simple values and the actions (operations) you can do with them are very limited. Examples of these are booleans (True/False), single characters and integers.

Objects on the other hand are much more complex. They are like "data types on steroids". They have their own methods and properties and there are much more things you can do with them. Examples of objects are Integers ("objectified" integers), Strings, Arrays, Class instances etc