Google+

179. Data Types in Java







Data Types specifies the type of values that can be stored in an identifier.

Examples -

int var;  //Here int is a data type and it specifies that integer values can be stored in the 'var' identifier.

Car benz;  //Assume that the Car is the Class Name. Here Car Class is the data type and it specifies that Car Class object can be stored in the 'benz' identifier. 

Data types in Java are divided into two categories as shown below  -



Primitive Data Types will be explained in the next post.




Please comment below to feedback or ask questions.

Primitive Data Types will be explained in the next post.




No comments: