Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




Java Interview Questions: - Difference between EAR, JAR and WAR file?

Following is the differences between EAR, JAR and WAR file asked during Java Interview Questions.

JAR: - EJB modules which contains enterprise java beans class files and EJB deployment descriptor are packed as JAR files with .jar extension

WAR: - Web modules which contains Servlet class files, JSP FIles,supporting files, GIF and HTML files are packaged as JAR file with .war( web achive) extension

EAR: - All above files(.jar and .war) are packaged as JAR file with .ear ( enterprise archive) extension and deployed into Application Server

SAR (Service ARchive): -  It provides a service.xml file and accompanying JAR files. And used in case of SOA

APK (Android Application Package):- A variant of the Java archive format, is used for Android applications

See the following video on Java - Inheritance between beans and spring asked during java Interview:

Click for more Java interview questions

Regards,

Visit for more author’s blog on Java interview questions

Share this article   |    Print    |    Article read by 2154 times
Author:
Shivprasad Koirala
We conduct training for Java/J2EE technologies like design patterns, J2EE, Struts, Hibernate, Spring, Rich Interface etc. and likes to write articles on the same in free time.
Related Articles: No related article
Related Interview Questions: