What is the difference between Throw and Throws? Throw is used to throw Exception, in the method, and throws is used to declare the possible Exception, how to generate .jar files in a statement of a class or method? Usage: jar {ctxu} [VFM0M] [JAR- File] [Manifest- File] [-c Directory] File Name ... Option: -c Create a new archive -T list of the list of archived contents -X Expand Named (or all) file -U update existing archive -V generation detailed output to standard output -f specified archive file name -M contains flag information from the indicate file - 0 only storage method; unused zip compression Format -M does not generate a list of all items (Manifest) file-i generates index information -c to change to the specified directory for the specified JAR file, and contains the following file: If a file name is a directory, it will be recursively processed. The list (manifest) file name and archive file name need to be specified, press the same order as specified by 'm' and 'f' flags. Example 1: Archive two Class files into the archive file called 'classes.jar' : JAR CVF CLASS.JAR FOO.CLASS BAR.CLASS Example 2: Archive all files in the foo / directory into a archive file named 'Classes.jar' with an existing list (manifest) file 'mymanifest'. JAR CVFM Classes.jar mymanifest -c foo /. example 3: jar -cvf zhz.jar Hello.class Excellent article website recommendation: 1 How to quickly become a Java master [Tomjava original]
Http://www.java.com.cn/showtopic.as...719&sterum_id=31
2. An old engineer's words (giving a ten advice to young electronics engineers)
Http://www.pconline.com.cn/pcjob/it...312/261734.html
3. A lot of Java program example, Examples for Almost All Java Classes
Http://javaalmanac.com/egs/
4. The Java Tutorial on sun
http://java.sun.com/docs/books/tutorial/
5. Talk about Java's learning direction (reproduced)
http://www.430000.net/printpage.asp?teffleid=46
6. Java learning
http://www.9cbs.net/develop/author/cxy/way_to_java.shtm
7. Java program code specification from Suncode Conventions for the Javatm Programming Language
Http://java.sun.com/docs/codec/h...onvtoc.doc.html
8. Java program coding specification from IBM
http://www-900.ibm.com/developerWor...ard/index.shtml
9. 50 advice to C beginners Good for Java Too
http://post.baidu.com/f?kz=647098
10. An article for beginners
http://www.mifun.net/pengjie/myweb/...?id=95&sort=jsp
11. Question Wisdom How to ask quest: http://www.catb.org/~esr/faqs/smart-questions.html
Chinese Version:
http://alfredy.myetang.com/
12. From Coding Fan to the real technical expert
http://www.chinajavaworld.net/forum...ic=12814&show=0