- Primitive data type:
- Boolean - 1 bit
- byte - 8 bits
- short - 16 bits
- char - 16 bits
- int - 32 bits
- float - 32 bits
- long - 64 bits
- double - 64 bits
- Reference data type : The variable will represent the address
- Arrays
- classes
- Interface
Converting one data type into another data type.
- Explicit conversion or Type casting
double a;
int b;
a=(double)b;
Remember the data type should be whithin the bracket.
- Implicit type conversion
The other name for variable is identifier.Literal is the other name for constant.
Escape Sequence :
Represented by a backslash( \ ) followed by one or more characters. Remember to use \ instead of /,coz in the trial exam most of you have used forward slash.
Operators :
This is a very important topic.I am going to skip the simple operators and concentrate more on increment decrement operators. I will post it tomorrow. If you need any topic in detail, let me know.
No comments:
Post a Comment