Java basic data type: cannot =null;
Four types of eight categories:
1. Integer type
Byte 2 of Eight square (256)-127-128 in memory accounting for 1 bytes
Short 2 of 16 square memory 2 bytes
int 2 of the 32-square-memory account 4 bytes
A long 2 of the 64-time memory occupies 8 bytes
2. Floating-point type
Float-----------Valid Digital 7-bit (single-precision floating-point type) 4 bytes in memory
Double--------valid digit 16-bit (double) memory occupies 8 bytes
3. Boolean type
Boolean (only another value, True,false) accounts for 1 bytes in memory
4. Character type
char (single quote) 2 bytes in memory
Identifier:
Any place that needs your name is called an identifier.
Java programming is strictly case-sensitive
The name of the identifier cannot be duplicated with the keyword
Reserved words: Goto CONST
Rules:
Identifiers are alphabetic (case), _, $, and cannot start with a number
Code specification: Hump Naming method
String EmpName
getElementById
First knowledge of Java