The JAR file format offers many advantages and functionality, many of which are traditional compression formats such as ZIP or RAR that are not provided. They include:
Security can digitally sign the contents of a JAR file. This way, a signature-aware tool can selectively grant you software security privileges, which cannot be done by other files, and it can also detect if the code has been tampered with.
Reduce download time If an applet is bundled into a JAR file, the browser can download the applet's class file and related resources in an HTTP transaction instead of opening a new connection for each file.
The compact JAR format allows you to compress files to improve storage efficiency.
The transport Platform Extensions Java Extension Framework (Java Extensions Framework) provides a way to add functionality to the Java core platform, which is packaged with JAR files (Java and JavaMail are examples of extensions developed by Sun).
1 Packagecom.table;2 3 Public classonetable {4 /**5 * Results of programming Expressions6 */7 Public Static voidMain (string[] args) {8System.out.println ("& =" + (12&19));9System.out.println ("56 | 32 = "+ (56|32));TenSystem.out.println ("27 ^ 13 =" + (27^13)); OneSystem.out.println ("33 + 55 =" + (33+55)); ASYSTEM.OUT.PRINTLN ("33 * 55 =" + (33*55)); -System.out.println ("33/55 =" + (33/55)); -System.out.println ("33-55 =" + (33-55)); the } -}
The JAR file format offers many advantages and functionality