



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




❖ Java programming language has a rich set of data types.
❖ The data type is a category of data stored in variables.
In java, data types are classified into two types and they are as follows. Primitive Data Types Non-primitive Data Types
❖ The primitive data types are built-in data types and they specify the type of value stored in a variable and the memory size.
❖ The primitive data types do not have any additional methods.
❖ In java, primitive data types includes byte , short , int , long , float , double , char , and boolean.
Primitive Data Type Primitive Data Type These are built-in data types These are created by the users Does not support additional methods
Support additional methods
Always has a value It can be null Starts with lower-case letter Starts with upper-case letter Size depends on the data type Same size for all