Java have two Data types
- Primitive data types Ex :
Primitive data types in Java can be divided into three main categories:
- Non-primitive data types Ex :
- String, Arrays and Classes
How To Use Data Type and Declaring and Initializing Variables
byte b = 127 ;
short v = 32767;
int bb = 2147483645 ;
long vv = 9223372036854775807L;
char l = 'D';
String name = "ajalks sdjksdskldd skdsk897878d 8789ds" ;
float fv = 12.12f ;
double df = 3232.323232 ;
boolean nm = true;
boolean nv = false;
String j = "java 99"; // Declaring and Initializing Variables
Code Here
Tags:
Java