Explain the int data type qualifiers with an Example.
Advertisements
प्रश्न
Explain the int data type qualifiers with an Example.
स्पष्ट करा
Advertisements
उत्तर
In Java, integer data type qualifiers refer to the different integer types used to store whole numbers of varying sizes and ranges. Java provides four integer data types: byte, short, int and long.
Example:
byte a = 10;
short b = 200;
int c = 5000;
long d = 100000L;
In the above example, byte, short, int and long store integer values using different amounts of memory.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
