GuidePedia

0







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 a particular size and types of values that are stored in identifier.





Data types divided into two types.
Data types divided into two types Primitive and  Non  primitive.

Classes
Arrays
Interfaces
Primitive

Primitive divided into two types Numeric and NON-Numeric.
  • Numeric

Integer
Floating point


  • Integer                         

Byte                             1byte
Short                           2byte
Int                            4byte
Long                           8byte
  • Floating point

Float                          4byte
Double                     8 byte
  • Nonnumeric

Character
Boolean

  • Nonnumeric

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


RELATED POST.


Nested if else statement
If else statement in java
If statement in java
A simple program in java for begnners
 System.out.printin() in java
Public static void main ( String args[] ) in java program.
The basic structure of the java program.
Data types in java with examples(write and video tutorial
what is JVM(java virtual machine) java 8 features
What is Java programming and java history

Post a Comment

THANKS FOR COMMENT

 
Top