java>>>001--notes

Source: Internet
Author: User

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

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.