Integer type: Byte, short, int, long.
Float type: Float single precision, double dual precision
Character type: char character
Logical Type: Boolean Boolean (Value only true and false)
Strings: String
Two-character occupancy
The code for ' A ' is: 65 and so on
The code for ' A ' is: 97 and so on
declaring variables
Data type variable name = value;
Three identifiers
System definition
1 consists of a letter, an underscore "_", a dollar symbol "$", or a number. 2 should start with a letter, underscore, dollar symbol. 3Java identifiers are case sensitive and have unlimited length. 4 "See the name" 5 cannot be the keyword 6 stick to the Hump nomenclature user-defined 1 a custom identifier cannot duplicate a keyword. 2 variable names to all lowercase 3 constant names to all caps four Java keywords All Java keywords are in lowercase english. Force data type conversion int x = 2.3;int x = (int) 2.3;
Java Fundamentals 3