Programming Tutorials

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

By: Karthik in Interview Tutorials on 2012-06-16  

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.





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Interview Question: What is abstract schema?

What is similarities/difference between an Abstract class and Interface?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

What are types of J2EE clients?

What is the difference between JTS and JTA?

Interview Question: How do I install Struts?

What are implicit Objects available to the JSP Page?

What are the call back methods in Session bean?

Interview Question: Is Struts compatible with other Java technologies?

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

Question: What is the directory structure of a web application?

Interview Question: Why it is called Struts?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

What is Collection API?

Latest Articles (in Interview)