In computing, a JAR file (or Java ARchive) is used for aggregating many files into one. It is generally used to distribute Javaclasses and associated metadata.WAR (file format) (Web Application aRchive) files are also Java archives which store XML files, java classes, Java Server Pages and other objects for Web Applications.RAR (Resource Adapter aRchive) files, not to be confused with the RAR file format, are also Java archives which store XML files, java classes and other objects for J2EE Connector Architecture (JCA) applications.EAR (file format) (Enterprise ARchive) files are composite Java archives which combine XML files, java classes and other objects including JAR, WAR and RAR Java archive files for Enterprise Applications.
See more at Wikipedia.org...