filmov
tv
Java program to find Range of all Data Types - Java Tutorial 10
Показать описание
Notes for You:: Java program to find Range of all Data Types - Java Tutorial 10
- indicates type of data.
- indicates the amount of memory to be allocated for a specific type of data.
- also indicates the range of values possible to store in a specific type of allocated memory.
There are 8 primitive data types available in Java language
Data type: byte
Size: 1 byte
Range: -128 to 127
Data type: short
Size: 2 bytes
Range: -32768 to 32767
Data type: int
Size: 4 bytes
Range: -2147483648 to 2147483647
Data type: long
Size: 8 bytes
Range: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Data type: float
Size: 4 bytes
Range: 1.4E-45 to 3.4E+38
Data type: double
Size: 8 bytes
Range: 4.9E-324 to 1.7E+308
Data type: char
Size: 2 bytes
Range: ‘any symbol’
Data type: bool
Size: 1 bit
Range: true or false
Example Code:
package rangeofalltypesdemo;
public class RangeofAllTypesDemo {
public static void main(String[] args) {
}
}
=========================================
Follow the link for next video:
Follow the link for previous video:
=========================================
Java Tutorials Playlist:-
=========================================
Watch My Other Useful Tutorials:-
C++ Tutorials Playlist:
C# Tutorials Playlist:-
C Programming Tutorials Playlist:
C Practical LAB Exercises Playlist:-
=========================================
► Subscribe to our YouTube channel:
► Visit our Website:
=========================================
Hash Tags:-
#ChidresTechTutorials #JAVA #JAVATutorial
- indicates type of data.
- indicates the amount of memory to be allocated for a specific type of data.
- also indicates the range of values possible to store in a specific type of allocated memory.
There are 8 primitive data types available in Java language
Data type: byte
Size: 1 byte
Range: -128 to 127
Data type: short
Size: 2 bytes
Range: -32768 to 32767
Data type: int
Size: 4 bytes
Range: -2147483648 to 2147483647
Data type: long
Size: 8 bytes
Range: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Data type: float
Size: 4 bytes
Range: 1.4E-45 to 3.4E+38
Data type: double
Size: 8 bytes
Range: 4.9E-324 to 1.7E+308
Data type: char
Size: 2 bytes
Range: ‘any symbol’
Data type: bool
Size: 1 bit
Range: true or false
Example Code:
package rangeofalltypesdemo;
public class RangeofAllTypesDemo {
public static void main(String[] args) {
}
}
=========================================
Follow the link for next video:
Follow the link for previous video:
=========================================
Java Tutorials Playlist:-
=========================================
Watch My Other Useful Tutorials:-
C++ Tutorials Playlist:
C# Tutorials Playlist:-
C Programming Tutorials Playlist:
C Practical LAB Exercises Playlist:-
=========================================
► Subscribe to our YouTube channel:
► Visit our Website:
=========================================
Hash Tags:-
#ChidresTechTutorials #JAVA #JAVATutorial