Monday, June 17, 2019

Data types in java

When we are store the data on variables then data types present  what kind of data stored in variables .
Data types is particular size and types of values that’s stored  in  identifier.
Data types divided in to two types .
Data types divided into two types Primitive and  Non  primitive.
Non primitive
Classes
Arrays
Interfaces
Primitive
Primitive
Primitive  divided into two types Numeric and non Numeric.
Numeric
Integer
Floating point
Integer                        
Byte                             1byte
Short                           2byte
Int                            4byte
Long                           8byte
Float                          4byte
Double                     8 byte
Non numeric
Character
Boolean

Char                2byte
Boolean       
Boolean used in java program as a condition true and false.
It used the memory  one bit.

<a href=" https://www.teeztareen.com/2019/06/blog-post_16.html">Data types in java</a>


Data types in java

No comments:

Post a Comment

Data types in java

Data types in java When we are store the data on variables then data types present  what kind of data stored in variables . Data types...