001-NOTES:
Dos:
Command:
Dir
View current directory
Md:
Create a folder
Rd
Delete the folder (there are files in it can not be deleted)
bd[
Open Folder
Cd..:
Back to Parent Directory
Adm:
Back to the root directory
Del directory (delete files all files)
Echo Zjm is a sb>zjm.txt//output A Word to zjm.txt this file
Exit: Exit
---------------------------------------
SUN 95 (Stanford University Network)
1.javaee (Java ee)
2.javase (Common Desktop business application is the so-called Java Foundation)
3.javame (Android based mobile app)
java5.0 started with the Java EE javase javame
----------------------------------------
Cross-platform (countless times stressed ~ ~)
Principle:
Install Java Virtual machine (JVM Java VM is called JDK)
JRE (Java Runtime Environment contains JVM)
JDK (Java Development Kit JDK includes JRE with JDK installed without JRE installed)
Compilation Tool: Javac.exe Packaging tool: Jar.exe
--------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------
Jdk,jre,api involved in the Java parts of the knowledge:
CMD command:
Set instruction display system environment variables
Set PATH=ZJM setting environment variable to ZJM (only valid for another path invalidation in the current window)
%path% Obtain the original path value;
Start: Open another window with the original set set environment variable
-------------------------------------------------------------------
Public class hello{ publicstaticvoid main (String args[]) { System.out.println ( "hello,zjm!" ); }}//and class hello{
Public Static void Main (String args[]) {
System.out.println ("hello,zjm!" ); }} The difference is that the declared public must have the same file name as the class name, and no Pubclic file name can be arbitrary.
------------------------------------------------------------------------------------
Classpath set the path of the class file (after 1.5 no longer set the Classpath settings for backwards compatibility)
Find Classpath's class file first
Configure the CLASSPATH variable so that the Java interpreter knows where to look for the standard class libraries, which are already written by others, and we use them. For example, the class that we commonly use in the Java.lang package is set as the default import after configuring the CLASSPATH variable, so you do not have to import the package when you write the program. So where are these standard libraries? In a file with the jar suffix in the Lib directory of the JDK: one is Dt.jar, the other is Tools.jar, and the two jar packages are located in the C:/jdk1.6.0/lib directory
Set classpath c:/; Do not add semicolons, and the semicolon will be found in the current directory. Do not add semicolons only in Classpath path lookup
.; Current path
CLASSPATH environment variables are not required in the same directory
Comments:
Single-line Comment://
/**/
Multiline Comment:/*
*/
/* Write a program to make more comments yourself easy to review also easy for others to view * *
------------------------------------------------------------------
java>>>001--notes