201671010128 Java Basic program design structure of Java programming 2016-2017-2

Source: Internet
Author: User
Tags modifier

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.