Data types specify:
Examples:
Cheers,
Navatha.
1. Size of the memory location.
2. Range of the data that can be accommodated.
3. Type of the data stored in the system with which you want to execute the logic.
Syntax: Data-type Variable-name;
Examples:
- byte b;
- short s;
- int x=10;
- long l;
- float f=10.32;
- double d;
- boolean t;
- char c='a';
Cheers,
Navatha.
No comments:
Post a Comment