• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

J2EE Interview Questions Answers

Question - 51 : - What is EJB JAR file ?

Answer - 51 : - A JAR archive that contains an EJB module.

Question - 52 : - What is container-managed transaction ?  

Answer - 52 : - A transaction whose boundaries are defined by an EJB container. An entity bean must use container-managed transactions.

Question - 53 : - What is "application component provider" ?

Answer - 53 : - A vendor that provides the Java classes that implement components' methods, JSP page definitions, and any required deployment descriptors.

Question - 54 : - What is authorization ?  

Answer - 54 : - The process by which access to a method or resource is determined. Authorization depends on the determination of whether the principal associated with a request through authentication is in a given security role. A security role is a logical grouping of users defined by the person who assembles the application. A deployer maps security roles to security identities. Security identities may be principals or groups in the operational environment.  

Question - 55 : - What is J2EE ?  

Answer - 55 : - Java 2 Platform, Enterprise Edition.  

Question - 56 : - What is "application assembler" ?

Answer - 56 : - A person who combines J2EE components and modules into deployable application units.

Question - 57 : - What is build file ?  

Answer - 57 : - The XML file that contains one or more asant targets. A target is a set of tasks you want to be executed. When starting asant, you can select which targets you want to have executed. When no target is given, the project's default target is executed.  

Question - 58 : - What is "applet container"  ?

Answer - 58 : - A container that includes support for the applet programming model.

Question - 59 : - What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?

Answer - 59 : - There are no structural differences between the files; they are all archived using zip-jar compression. However, they are intended for different purposes. --Jar files (files with a .jar extension) are intended to hold generic libraries of Java classes, resources, auxiliary files, etc. --War files (files with a .war extension) are intended to contain complete Web applications. In this context, a Web application is defined as a single group of files, classes, resources, .jar files that can be packaged and accessed as one servlet context. --Ear files (files with a .ear extension) are intended to contain complete enterprise applications. In this context, an enterprise application is defined as a collection of .jar files, resources, classes, and multiple Web applications. Each type of file (.jar, .war, .ear) is processed uniquely by application servers, servlet containers, EJB containers, etc.

Question - 60 : - What is enterprise bean ?

Answer - 60 : - A J2EE component that implements a business task or business entity and is hosted by an EJB container; either an entity bean, a session bean, or a message-driven bean.

Computer Contributors

Rajeev Katiyar
Yes Baroda

Share your email for latest updates


Our partners