One, Java is a multi-functional high-level language: 1, can be used to develop small programs on the Web page, the application running on the desktop;
2, server-side middleware for client server resource communication;
3, can also be used for Web servers.
Second, the procedure design of 5 steps: 1, analysis (analysis requirements, establish mathematical model), 2, design (design steps and Algorithms), 3, coding implementation; 4, commissioning; 5, maintenance.
Three, the variable naming specification: 1, the identifier cannot be a keyword or true, false, null;
2, identifiers can contain letters, numbers 0-9, underscores (_), or dollar signs ($);
3, the first character of the identifier must be a letter, an underscore (_), or a dollar sign ($);
4, identifiers are case-sensitive and do not specify a maximum length.
IV. eight data types built into the Java language: 1, Byte Type (byte), 2, short integer, 3, Integer (int), 4, Long Integer (long), 5, single type (float), 6, double type (double), 7, character type (char), 8, The Boolean type (Boolean).
Five, Java Virtual machine is an abstract computer, through the actual computer simulation of various computer functions to achieve. Java Virtual machine has its own perfect hardware architecture, such as processor, stack, register, etc., also has the corresponding instruction system. The JVM masks information that is relevant to the operating system platform, allowing Java programs to run without modification on multiple platforms by generating only the target code (bytecode) that runs on the Java virtual machine.
VI. SELECT statements
1,if statements
if (Boolean expression) {
If the Boolean expression is true, the statement executed
}
2,if/else statements
if (Boolean expression) {
Executes when the Boolean expression is True
}
else{
Executes when the Boolean expression is False
}
3,switch statements
Switch (variable) {
Case Value:
Statement
break;//optional
Case Value:
Statement
break;//optional
There can be a lot of case statements
Default://Optional
Statement
}
Basic Java Learning 1