In Java, every variable and every expression has some Type.
Each And Every datatype Is clearly defined and every assignment should be checked by compiler For type compatibility.So, we can conclude that the Java language Is strongly typed language.
Java Is not considered as a pure Object Oriented Programming language because several book feature is not satisfied by java like.
Example: Operator Overloading Multiple Inheritance etc.
The byte data type have:
class Byte {
public static void main(String[] args) {
byte a;
a = 124;
System.out.println(a);
}
}
1. Character Stream
2.Byte Stream
-If you handle data in term of stream either from the file are from are from the network
-File Support from and network support from are byte
The Short is must rarely use data type in java.
The byte data type have:
class Short {
public static void main(String[] args) {
short a;
a = -250;
System.out.println(a);
}
}
It is the most common data type in Java.
The byte data type have:
class int {
public static void main(String[] args) {
int a = 500050;
System.out.println( a );
}
}
Some time int data type range is may not sufficient for hold big value so on that case we should go for long type.
class long {
public static void main(String[] args) {
long a = 4356784L;
System.out.println(a);
}
}
class float {
public static void main(String[] args) {
float a = 50.7f;
System.out.println(a);
}
}
class double {
public static void main(String[] args) {
double a = 78.9;
System.out.println(a);
}
}