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 )

What is the difference between JTS and JTA?

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 types of comments are available in the JSP?

What are the life-cycle methods of JSP?

Explain the different forms of Polymorphism.

Interview Question: What are the optional clauses in EJB QL?

Question: What is an output comment in JSP?

What is J2EE?

Interview Question: What is the difference between JavaBean and EJB?

Explain the new Features of JDBC 2.0 Core API?

Interview Question: What is the difference between EAR, JAR and WAR file?

What do you understand by a container in J2EE?

Interview Question: What is Local client view in EJB?

Interview Question: What is Remote client view?

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

Latest Articles (in Interview)