Java program first knowledge of Java Java use: Write a command-line program website: Iteye CSDN Blog Park
Write the first Java program: Hellow World understand what a program knows about Java technical content using Notepad to develop a simple Java program can be seen as a series of descriptions of the execution process of the action
A collection of ordered instructions written to allow a computer to perform certain operations or solve a problem
Java is the javase of the Advanced programming language Java field introduced by Sun Mirosystems in 1995, and Java EE Technology has developed into a world-class application development platform and technology with C # and. NET.
The father of Java: James Gosling (James Gauss Lam)
. NET is the language Java is the platform
What can Java do? can develop desktop applications: such as bank settlement, etc. javase: Standard Edition Java EE: Enterprise Edition
Three steps to write Java Program 1, write the source program (. java suffix) 2, compile the source program (. class suffix) Javac space java name and suffix name 3, run Java Space class file name, remember not to add a suffix
To develop a Java program with Notepad: 1. Create Notepad. Java is the suffix of the file, write the source program 2, compile the. java file with the Javac command, build. Class 3, run the. class file with the Java command, output the result
Java basic structure public class class name {public static void main (string[] args) {}}
Note: 1, the word spelling error 2, the case of the distinction 3, brackets 4, the word missing write
Hold down SHIFT and right-select the "Open command Window Here"
The basic structure of Java consists of: frame 1 of the function, program Framework 2, Main () 3, writing code
Main four to number public static void sring[] args complete main structure: public static void Main (string[] args) {}
The difference between System.out.println () and System.out.print () System.out.print ()
Escape character \ n: line break command \ t: Horizontal tab command
There are two types of annotations: 1. Single-line comment//2. Multiline Comment/* content */*/* * * * * for document Generation
Java Programming Specification 1, the class name with pinyin and English, the first Capital 2, the class name to add Public 3, the code line of 4, after each statement to add; (semicolon) 5, to write comments 6, the notation of parentheses, the front bracket after the beginning of the structure, the parentheses after the structure of the end of the line, And aligns with the first letter of the starting structure 7, showing a tiered hierarchy (Indent press TAB)
Programmer's Habit 1, file display type, with details 2, display the file extension 3, Show hidden file name
My first contact with Java learned some of the knowledge