Basic program framework for 1.Java:
public class class name
{
public static void Main (string[] args)
{
Statement Group;
}
}
- The keyword public is called an access modifier that is used for the level of access to this code by other parts of the control program.
- The keyword class indicates that all content in a Java program is contained in a class. Here, you only need to use the class as a container for loader logic, and the program logic defines the behavior of the application.
- The class name consists of a letter, a number, an underscore, a dollar symbol, and the length is unlimited, but you cannot use the Java reserved word as the class name. And, when used, to be case sensitive, the class name must be the same as the file name.
- Static represents the meaning of "global" or "static", which modifies member variables and member methods, and can also form statically static blocks of code, but there is no concept of global variables in the Java language. member variables and member methods that are modified by static are independent of any object of the class. That is, it does not depend on class-specific instances and is shared by all instances of the class.
- The definition of a method must have a return value type modifier, one of which indicates that the method has no return value, and that the keyword is void.
- The main () method is the entry method for the Java application, which means that the first method to execute is the main () method when the program is running.
2. Object-oriented Programming course learning progress bar
Moonphases |
(read/write) Number of lines of code |
Posted Blog Volume/Blog comments number |
Classroom/after-school time (hours) |
The most satisfying programming task |
First week |
20/7 |
1/1 |
6/4 |
Write the Hello World program |
Second week |
38 |
1/ |
6/4 |
Experiment two task three |
... |
|
|
|
|
Cumulative |
|
|
|
|
3. Chapter Three Studies Java annotations, data types, variables, operators, strings, input and output, control flow, large values, arrays, for some knowledge points are not very understanding, will be explored in the future learning process.
201671010128 Java Basic program design structure of Java programming 2016-2017-2