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

By: Ash Printer Friendly Format    

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.

 

 

 

 

Ask a Question



Most Viewed Articles (in Interview )

Can Entity Beans have no create() methods?

What types of comments are available in the JSP?

Interview Question: What is Struts?

Interview Question: How is the MVC design pattern used in Struts framework?

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

Interview Question: What is the difference between sessioncontext and entitycontext?

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

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Interview Question: What is deployment descriptor?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

What do you understand by a J2EE module?

What are the services provided by a container?

What are types of J2EE clients?

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

Explain the new Features of JDBC 2.0 Core API?

Latest Articles (in Interview)

Comment on this tutorial