Directory:
1 Learn some basic DOS commands first
2 version Common sense Introduction 3 installation package Introduction
4 environment variable Set 5 identifier
6 definitions and features of keywords
7 Recommendations for learning data types
8 Some recommended rules for using commands
9 Some considerations for starting Java programming (use of annotations)
1 Learn some basic DOS commands first
Dir list files and folders in the current directory
MD Create Folder
Rd Delete folder (no sub files under file)
Del "folder name" to delete the folder of the tape file
CD: Move the folder directory one level back
Cd\ back to the root directory
Haha>1.txt create a document and write haha to a 1.txt document
Del 1.txt Deleting a file (without taking the Recycle Bin)
del *.txt only delete txt files
Exit quit command Line
After set, press ENTER to display the local environment variables that are configured well
Set path to view path
Set Path=haha only in the current command line state, change path, close the command line path is restored to the original state
Set path=haha;%path% temporarily add Path=haha as if it were above
Start opens a new command line under the command line
Set path= empty the environment variable
2. The Java EE represents the Enterprise Edition
J2SE represents the Standard Edition (just beginning to learn Java, one of the recommended versions)
J2ME represents the version of the java5.0 after the small version was renamed in order to be named as Java EE
3. The JRE represents the Java Runtime environment
JDK (note JDK package contains JRE) indicates Java SDK
JDK installation package: www.oracle.com or java.sum.com
4. Environment variable Settings
First, java_home indicates the JDK installation path, both the path selected at the time of installation D:\ jdk1.4
Second, in the System variables box, select Path, and then click the Edit button, at the end of the Edit System Variable dialog box that appears, add as:%java_home%\bin;%java_home%\jre\bin:
Third, the same method set the environment variable "classpath", whose value is.; %java_home%\lib\dt.jar; After%java_home%\lib\tools.jar, you can enter JAVA and Javac in the command line to see if the setting is successful (note: If there is a problem, you can change the setting path to add the contents as: C:jdk\bin;) 5. Identifiers can be letters, numbers, underscores, and (dollar signs), but numbers cannot be used as identifiers at the beginning of the note: The comment cannot use the keyword
6. Definitions and features of keywords, keywords such as int,double
Definition: Word features that are given special meaning by the Java language: All letters in the keyword are lowercase
7. Data type just need to know, do not require too much memorization, the use of the process of memory
(Note: Main is not a keyword but can be set up by the Java Virtual machine (the installation and environment variables of the JDK and JRE described earlier)
8.
Class Name: Capitalize the first letter of all words
Variable: First letter in lowercase, initial capitalization of climate word
Constants: All uppercase letters
9 It's a good idea to get into the habit of adding comments Java has three ways to annotate
One: Document comments (note: A recommended way to write a large program, for subsequent reading and development, this part of the comments can add author and time information, etc.):
/** This procedure solves the problem
Ideas
* 1,
* 2,
Steps
* *.
* *.
*/
Two: single-line Comment://Explain the contents of the description
Three: Multiline Comment:/* Explain the contents of the description */
Java Learning Readiness Knowledge