Sample Questions Best site for GRE, LSAT, SAT, GMAT, TOEFL, CCNA, CCSA and interview sample questions  

Technical Sample Questions : C |  C++ |  Oracle |  Java | Unix |  Operating Systems |  Data Structure

Java Sample Questions ›› J2EE Sample Questions

Technical Java Sample Questions : J2EE Sample Questions

  1. What is J2EE Connector?

    Answer: The J2EE Connector API is used by J2EE tools vendors and system integrators to create resource adapters that support access to enterprise information systems that can be plugged into any J2EE product.Each type of database or EIS has a different resource adapter.Note: A resource adapter is a software component that allows J2EE application components to access and interact with the underlying resource manager.Because a resource adapter is specific to its resource manager, there is typically a different resource adapter for each type of database or enterprise information system.

  2. What is JAAP?< p>Ans:The Java Authentication and Authorization Service (JAAS) provides a way for a J2EE application to authenticate and authorize a specific user or group of users to run it.It is a standard Pluggable Authentication Module (PAM) framework that extends the Java 2 platform security architecture to support user-based authorization.

  3. What is Java Naming and Directory Service?

    Answer: The JNDI provides naming and directory functionality.It provides applications with methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes.Using JNDI, a J2EE application can store and retrieve any type of named Java object.Because JNDI is independent of any specific implementations, applications can use JNDI to access multiple naming and directory services, including existing naming and directory services such as LDAP, NDS, DNS, and NIS.

  4. What is Struts?

    Answer: A Web page development framework.Struts combines Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework.It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between.

  5. How is the MVC design pattern used in Struts framework?

    Answer: In the MVC design pattern, application flow is mediated by a central Controller.The Controller delegates requests to an appropriate handler.The handlers are tied to a Model, and each handler acts as an adapter between the request and the Model.The Model represents, or encapsulates, an applications business logic or state.Control is usually then forwarded back through the Controller to the appropriate View.The forwarding can be determined by consulting a set of mappings, usually loaded from a database or configuration file.This provides a loose coupling between the View and Model, which can make an application significantly easier to create and maintain.Controller: Servlet controller which supplied by Struts itself; View: what you can see on the screen, a JSP page and presentation components; Model: System state and a business logic JavaBeans.

  6. What is the Java 2 Platform, Enterprise Edition (J2EE)?

    Answer: The Java 2 Platform, Enterprise Edition (J2EE) is a set of coordinated specifications and practices that together enable solutions for developing, deploying, and managing multi-tier server-centric applications.Building on the Java 2 Platform, Standard Edition (J2SE), the J2EE platform adds the capabilities necessary to provide a complete, stable, secure, and fast Java platform to the enterprise level.It provides value by significantly reducing the cost and complexity of developing and deploying multi-tier solutions, resulting in services that can be rapidly deployed and easily enhanced.

  7. What are the main benefits of the J2EE platform?

    Answer: The J2EE platform provides the following:

    • Complete Web services support:The J2EE platform provides a framework for developing and deploying web services on the Java platform.The Java API for XML-based RPC (JAX-RPC) enables Java technology developers to develop SOAP based interoperable and portable web services.Developers use the standard JAX-RPC programming model to develop SOAP based web service clients and endpoints.A web service endpoint is described using a Web Services Description Language (WSDL) document.JAX-RPC enables JAX-RPC clients to invoke web services developed across heterogeneous platforms.In a similar manner, JAX-RPC web service endpoints can be invoked by heterogeneous clients.For more info, see http://java.sun.com/webservices/.
    • Faster solutions delivery time to market:The J2EE platform uses "containers" to simplify development.J2EE containers provide for the separation of business logic from resource and lifecycle management, which means that developers can focus on writing business logic -- their value add -- rather than writing enterprise infrastructure.For example, the Enterprise JavaBeans (EJB) container (implemented by J2EE technology vendors) handles distributed communication, threading, scaling, transaction management, etc.Similarly, Java Servlets simplify web development by providing infrastructure for component, communication, and session management in a web container that is integrated with a web server.
    • Freedom of choice:J2EE technology is a set of standards that many vendors can implement.The vendors are free to compete on implementations but not on standards or APIs.Sun supplies a comprehensive J2EE Compatibility Test Suite (CTS) to J2EE licensees.The J2EE CTS helps ensure compatibility among the application vendors which helps ensure portability for the applications and components written for the J2EE platform.The J2EE platform brings Write Once, Run Anywhere (WORA) to the server.
    • Simplified connectivity:J2EE technology makes it easier to connect the applications and systems you already have and bring those capabilities to the web, to cell phones, and to devices.J2EE offers Java Message Service for integrating diverse applications in a loosely coupled, asynchronous way.The J2EE platform also offers CORBA support for tightly linking systems through remote method calls.In addition, the J2EE platform has J2EE Connectors for linking to enterprise information systems such as ERP systems, packaged financial applications, and CRM applications.
    • By offering one platform with faster solution delivery time to market, freedom of choice, and simplified connectivity, the J2EE platform helps IT by reducing TCO and simultaneously avoiding single-source for their enterprise software needs.

  8. Can the J2EE platform interoperate with other WS-I implementations?

    Answer: Yes, if the other implementations are WS-I compliant.

  9. What technologies are included in the J2EE platform?

    Answer: The primary technologies in the J2EE platform are: Java API for XML-Based RPC (JAX-RPC), JavaServer Pages, Java Servlets, Enterprise JavaBeans components, J2EE Connector Architecture, J2EE Management Model, J2EE Deployment API, Java Management Extensions (JMX), J2EE Authorization Contract for Containers, Java API for XML Registries (JAXR), Java Message Service (JMS), Java Naming and Directory Interface (JNDI), Java Transaction API (JTA), CORBA, and JDBC data access API.

  10. What is the relationship of the Apache Tomcat open-source application server to the J2EE SDK?

    Answer: Tomcat is based on the original implementation of the JavaServer Pages (JSP) and Java Servlet specifications, which was donated by Sun to the Apache Software Foundation in 1999.Sun continues to participate in development of Tomcat at Apache, focusing on keeping Tomcat current with new versions of the specifications coming out of the Java Community Source ProcessSM.Sun adapts and integrates the then-current Tomcat source code into new releases of the J2EE SDK.However, since Tomcat evolves rapidly at Apache, there are additional differences between the JSP and Servlet implementations in the J2EE SDK and in Tomcat between J2EE SDK releases.Tomcat source and binary code is governed by the ASF license, which freely allows deployment and redistribution.

« Previous || Next »

J2EE Sample Question Number : 1-10| 11-20| 21-30| 31-40| 41-50| 51-60| 61-63
Sample Test Questions
GRE Sample Questions
CAT Sample Questions
GMAT Sample Questions
TOEFL Sample Questions
ACT Sample Questions
SAT Sample Questions
LSAT Sample Questions
PSAT Sample Questions
MCAT Sample Questions
PMP Sample Questions
GED Sample Questions
ECDL Sample Questions
DMV Sample Questions
CCNA Sample Questions
MCSE Sample Questions
Network+ Sample Questions
A+ Sample Questions
Technical Sample Questions
WASL Sample Questions
CISA Sample Questions

Other Sample Questions
Sample Interview Questions
Sample Teacher Interview Questions
Sample Citizenship Questions
Accuplacer Sample Questions
Science Bowl sample Questions
Driving Test Sample Questions
Sample Survey Questions Sample Essay Questions
Sample Behavioral Interview Questions

Copyright © 2004-2013, Best BSQ. All Rights Reserved.