मराठी

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Primitive Values, Wrapper Classes, Types and Casting - EXERCISE [पृष्ठ ११२]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
पाठ 5 Primitive Values, Wrapper Classes, Types and Casting
EXERCISE | Q 4. (b) | पृष्ठ ११२
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×