Differentiate between .ear, .jar and .war files.

By: Karthik Emailed: 1604 times Printed: 2075 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Answer: These files are simply zipped file using java jar tool. These files are created for different purposes. Here is the description of these files:

.jar files: These files are with the .jar extenstion. The .jar files contains the libraries, resources and accessories files like property files.

.war files: These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications.

.ear files: The .ear file contains the EJB modules of the application.

Interview Home | All Interview Tutorials | Latest Interview Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Karthik
What is the difference between interface and abstract class?
What are the life-cycle methods of JSP?
What is JSP Scriptlet?
What is JSP declaration?
What types of comments are available in the JSP?
What is expression in JSP?
What is JSP Output Comments?
What are all the different scope values for the tag?
What are implicit Objects available to the JSP Page?
What is the difference between jsp:forward and response.sendRedirect(url),?.
What is the difference between jsp:include page and @ include file?
What do you understand by JSP Actions?
What are Access Specifiers available in Java?
Explain the different forms of Polymorphism.
Explain the Polymorphism principle.

More Tutorials in Interview
What is J2EE?
What do you understand by a J2EE module?
Tell me something about J2EE component?
What are the contents of web module?
Differentiate between .ear, .jar and .war files.
What is the difference between Session Bean and Entity Bean?
Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
What do you understand by a container?
What are the services provided by a container?
What are types of J2EE clients?
What is Deployment Descriptor?
What do you understand by JTA and JTS?
What is JAXP?
What is J2EE Connector architecture?
What is difference between Java Bean and Enterprise Java Bean?

More Latest News
Most Viewed Articles (in Interview )
What is J2EE?
Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
What is JAXP?
Interview Question: What is Action Class?
What do you understand by a J2EE module?
Tell me something about J2EE component?
Differentiate between .ear, .jar and .war files.
What do you understand by a container?
What are the services provided by a container?
What are types of J2EE clients?
What is the difference between JTS and JTA?
What is Collection API?
Explain garbage collection?
What are all the different scope values for the tag?
What is JSP Scriptlet?
Most Emailed Articles (in Interview)
Interview Question: What is ActionServlet?
Interview Question: What is Struts?
What is J2EE?
What do you understand by a container?
What is Deployment Descriptor?
How to define an Abstract class?
Interview Question: What is ActionForm?
Interview Question: Where can I get help with Struts?
Interview Question: What is EJB container?
Interview Question: What is difference between EJB 1.1 and EJB 2.0?
Interview Question: What is lazy loading?
Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
What are types of J2EE clients?
What is J2EE Connector architecture?
What is difference between Java Bean and Enterprise Java Bean?