• J2EE Interview Questions and Answers:-

    1.What is J2EE component?

    J2EE component is a collected functional software unit supported by a container and configurable at
    deployment time. The J2EE specification shows the following J2EE component part:

    a)Application clients and applets that run on the client machine.

    b)Java servlet and Java Server Pages (JSP) technology are Web components that run on the server machine.

    c)Enterprise JavaBeans (EJB) (enterprise beans) are business components that run on the server.

    2.What is bean-managed transaction?

    The boundaries which are defined by an enterprise bean is called bean-managed transaction.

    3.What are types of J2EE clients?

    a) Java-Web Start
    b) Clients Applets
    c) Web applications
    d) Wireless clients

    4.Why J2EE is suitable for the development of distributed multi-tiered enterprise applications?

    J2EE application program allows the developers to design and implement the business logic into components according to business requirement. J2EE architecture allows the development of multi-tired applications and the developed applications can be installed on different machines depending on the tier in the multi-tiered J2EE environment . The J2EE application parts are:

    a) Web-tier components.
    b) Client-tier components.
    c) Business-tier components.
    d) Enterprise information system (EIS)-tier software.

    5.What are the components of web module?

    The components of web module are as following:

    a) Java classes
    b) JSP files
    c) Gif and html files and
    d) Web component deployment descriptors

    6.What is J2EE Connector architecture?

    J2EE Connector Architecture (JCA) is a Java-based technology solution for connecting application servers and enterprise information systems (EIS) as part of enterprise application integration (EAI) solutions.

    7.What is binding (XML)?

    Generating the code needed to process a well-defined portion of XML data.

    8.What is binding (JSF)?

    Wiring UI components to back-end data sources such as backing bean properties.

    9.What is build file?

    The XML file that contains one or more asant targets.

    10.What is business logic?

    The code that implements the functionality of an application.

    11.What is business method?

    A method of an enterprise bean that implements the business logic or rules of an application.

    12.What is callback methods?

    Component methods called by the container to notify the component of important events in its life cycle.

    13.What is caller principal?

    It is principal that identifies the invoker of the enterprise bean method.

    14.What is caller?

    It identifies the invoker of the enterprise bean method. It is same as caller principle.

    15.Differentiate ear, jar and war files?

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

    a)ear files: The .ear file comprises the EJB modules of the application. .

    b)jar files: are with the .jar extension. The .jar files comprises the libraries, resources and accessories files like property files..

    c)war files: are with the .war extension. The war file comprises 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.

    16.Differentiate between Session Bean and Entity Bean?160

    Session Bean: Session is one of the EJB and it shows a single client inside the Application Server. Stateless session bean is easy to develop and it is efficient. As compare to entity beans session beans need few server resources.

    Entity Bean: An entity bean represents persistent global data from the database. Entity beans data are stored into database.

    17.What is a container?

    Containers are the interface between a component and the low-level platform specific functionality that supports
    the component.

    18.What services provided by a container?

    The services provided by container are as follows:

    a) Transaction management for the bean
    b) Instance pooling for the bean
    c) Persistence
    d) Remote access
    e) Lifecycle management
    f) Database-connection pooling
    g) Security

    19.What is Deployment Descriptor?

    A deployment descriptor is simply an XML (Extensible Markup Language) file with the extension of .xml. Application servers reads the deployment descriptor to deploy the components contained in the deployment unit. As in: ejb-jar.xml file is used to describe the setting of the EJB.

    20.What is authentication?

    Process that verifies the identity of a user, device, or other entity in a computer system.

    21.What is B2B?

    B2B stands for Business-to-business process.

    22.What is backing bean?

    The backing bean defines properties for the components on the page and methods that perform processing for the

    23.What is basic authentication?

    An authentication mechanism in which a Web server authenticates an entity via a user name and password obtained using the Web application's built-in authentication mechanism.

    24.What is bean-managed persistence?

    The mechanism whereby data transfer between an entity bean's variables and a resource manager is managed by the entity bean.


  1. Karen Jain says:

    A template file is basically an XHTML file which defines the overall structure or layout of a page. Different facelets application can refer to same template to render pages with a common layout.
    Website Design Company in Bangalore | SEO Company in Bangalore

Leave a Reply


Blogumulus by Roy Tanck and Amanda Fazani


Enter your email address:

PHP Interview Questions ------------------------------------------ Competency Based Questions ------------------------------------------ Nursing Interview Questions ------------------------------------------ Art Of Delegation ------------------------------------------ Psychology Internship ------------------------------------------ MBA Interview Questions ------------------------------------------ SQL Interview Questions ------------------------------------------ Biomedical Engineering Interview Questions ------------------------------------------ Software Development Interview Questions
Hi World!! I am Jinendra Jain ,currently living in Mumbai, India. I am 20 year old,Started blogging in Sept 7,2009 while doing Engineering in Information Technology stream from Mumbai University. This blog is all about the interviewtips,by which it can acheive your goals and some improvement in our life. I think by this various articles you can be a very effective to sit confidently in an Interview..
So all the Best Guys.....

--Thank You.