Interview Question: What is the difference between EAR, JAR and WAR file?
By: Ash
Question:What is the difference between EAR, JAR and WAR file?Answer:
J2EE defines three types of archives:
1. Java Archives (JAR) A JAR file
encapsulates one or more Java classes, a manifest, and a descriptor. JAR files
are the lowest level of archive. JAR files are used in J2EE for packaging EJBs
and client-side Java Applications.
2. Web Archives (WAR) WAR files
are similar to JAR files, except that they are specifically for web applications
made from Servlets, JSPs, and supporting classes.
3. Enterprise
Archives (EAR) â€An EAR file contains all of the components that make up a
particular J2EE application.
 
Archived Comments
1. aviscu3
View Tutorial By: virgilvn3 at 2017-05-15 15:10:18
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
What do you understand by JTA and JTS?
What do you understand by Synchronization?
Name the containers which uses Border Layout as their default layout?
What is bean managed transaction?
What are the call back methods in Session bean?
Can Entity Beans have no create() methods?
What is the difference between JTS and JTA?
What is difference between Java Bean and Enterprise Java Bean?
What is J2EE Connector architecture?
Tell me something about J2EE component?