JavaWeb develop practical guidelines --- Notes

VII Note
1> main ---- Mian   
main method was wrong, javac compiled without error
at run time, only an error, main method can not find
2> semicolon
2.1 semicolon is missing, compile-time error need;
2.2 semicolon format is wrong, wrong compile Times illegal character of
the semicolon in English format semicolon;
3> is case-sensitive
String ---- string compile Times: Could not find symbol
System ---- system compiled Times : the package system does not exist
4> with the name of the file name is the same as the class
constraint
public
favor, we unified the class name and file name
5> in Java class name first letter capitalized
TestPro

7.2, class files
CLASSPATH
SET CLASSPATH = specified directory, the class files can be executed in the specified directory
set classpath = .; specified directory, the class files and directories in the current directory are designated execution
set classpath =;.% Classpath %

Knowledge notes

Please pay attention to micro-channel public number: qghktit

Published 16 original articles · won praise 0 · Views 2168

Guess you like

Origin blog.csdn.net/jeansmy111/article/details/104556691