`
- 浏览:
243786 次
- 性别:
- 来自:
广州
-
国外的一些J2EE面试题
转载
题目内容:
Question: What is J2EE?
Answer: J2EE Stands for Java 2 Enterprise Edition. J2EE is an environment for developing and deploying enterprise applications. J2EE specification is defined by Sun Microsystems Inc. The J2EE platform is one of the best platform for the development and deployment of enterprise applications. The J2EE platform is consists of a set of services, application programming interfaces (APIs), and protocols, which provides the functionality necessary for developing multi-tiered, web-based applications. You can download the J2EE SDK and development tools from http://java.sun.com/.
Question: What do you understand by a J2EE module?
Answer: A J2EE module is a software unit that consists of one or more J2EE components of the same container type along with one deployment descriptor of that type. J2EE specification defines four types of modules:
a) EJB
b) Web
c) application client and
d) resource adapter
In the J2EE applications modules can be deployed as stand-alone units. Modules can also be assembled into J2EE applications.
Question: Tell me something about J2EE component?
Answer: J2EE component is a self-contained functional software unit supported by a container and configurable at deployment time. The J2EE specification defines the following J2EE components:
* Application clients and applets are components that run on the client.
* Java servlet and JavaServer Pages (JSP) technology components are Web components that run on the server.
* Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server. J2EE components are written in the Java programming language and are compiled in the same way as any program in the language. The difference between J2EE components and “standard” Java classes is that J2EE components are assembled into a J2EE application, verified to be well formed and in compliance with the J2EE specification, and deployed to production, where they are run and managed by the J2EE server or client container.
Source: J2EE v1.4 Glossary
Question: What are the contents of web module?
Answer: A web module may contain:
a) JSP files
b) Java classes
c) gif and html files and
d) web component deployment descriptors
Question: Differentiate between .ear, .jar and .war files.
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.
Question: What is the difference between Session Bean and Entity Bean?
Answer:
Session Bean: Session is one of the EJBs and it represents a single client inside the Application Server. Stateless session is easy to develop and its efficient. As compare to entity beans session beans require few server resources.
A session bean is similar to an interactive session and is not shared; it can have only one client, in the same way that an interactive session can have only one user. A session bean is not persistent and it is destroyed once the session terminates.
Entity Bean: An entity bean represents persistent global data from the database. Entity beans data are stored into database.
Question: Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
Answer: The J2EE platform consists of multi-tiered distributed application model. J2EE applications 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) Client-tier components run on the client machine.
b) Web-tier components run on the J2EE server.
c) Business-tier components run on the J2EE server and the
d) Enterprise information system (EIS)-tier software runs on the EIS servers
Question: Why do understand by a container?
Answer: Normally, thin-client multi-tiered applications are hard to write because they involve many lines of intricate code to handle transaction and state management, multithreading, resource pooling, and other complex low-level details. The component-based and platform-independent J2EE architecture makes J2EE applications easy to write because business logic is organized into reusable components. In addition, the J2EE server provides underlying services in the form of a container for every component type. Because you do not have to develop these services yourself, you are free to concentrate on solving the business problem at hand (Source: http://java.sun.com/j2ee/1.3/docs/tutorial/doc/Overview4.html ).
In short containers are the interface between a component and the low-level platform specific functionality that supports the component. The application like Web, enterprise bean, or application client component must be assembled and deployed on the J2EE container before executing.
Question: What are the services provided by a container?
Answer: The services provided by container are as follows:
a) Transaction management for the bean
b) Security for the bean
c) Persistence of the bean
d) Remote access to the bean
e) Lifecycle management of the bean
f) Database-connection pooling
g) Instance pooling for the bean
Question: What are types of J2EE clients?
Answer: J2EE clients are the software that access the services components installed on the J2EE container. Following are the J2EE clients:
a) Applets
b) Java-Web Start clients
c) Wireless clients
d) Web applications
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
最全的j2EE面试题,题量大、经典,是我面试的整理试题 1、java笔试题大集合 2、各个公司面试题 3、J2EE初学者面试题 4、J2EE面试题(打码查错题) 5、java_华为笔试题 6、java常见面试题 7、java程序员面试宝典 8、...
J2EE面试题汇总涵盖了多个关键概念,包括J2EE架构、Java集合框架、EJB与Java Bean的区别、多态与继承、抽象类与接口、Servlet API中的forward()与redirect()以及XML解析方法等。 1. **J2EE是什么**: J2EE(Java 2...
**J2EE面试题集锦(附答案)** 在IT行业中,J2EE(Java 2 Platform, Enterprise Edition)作为企业级应用开发的基石,一直备受关注。掌握J2EE技术是许多Java开发者职业生涯中的重要一步,而面试则是检验开发者技能的...
### J2EE面试题集锦知识点解析 #### 1. Java类是否可多继承?以及哪些类是不可实例化的? 在Java中,类不支持多重继承,即一个类不能同时继承多个类,但可以通过实现接口(implements)来达到类似的效果。然而,一...
以下是一些核心的J2EE面试知识点: 1. 类继承性: - `java.lang.Thread` 和 `java.lang.ClassLoader` 可以被继承,而 `java.lang.Number`, `java.lang.Double`, `java.lang.Math`, `java.lang.Void` 和 `java.lang...
此文档集锦了历年来J2EE的各类面试题,对即将面试的朋友很有帮助。
5. J2EE 应用服务器的作用: - J2EE 应用服务器提供了运行 web 应用的环境,如 Servlet、JSP 等技术,处理客户端的 HTTP 请求,负责应用的部署、管理和监控,以及提供诸如事务处理、安全管理等服务。 6. J2EE 技术...
Java J2EE面试题是应届毕业生以及有经验的开发者在求职过程中经常遇到的挑战。为了在竞争激烈的IT行业中脱颖而出,了解并掌握这些知识点至关重要。J2EE(Java 2 Platform, Enterprise Edition)是一个用于构建企业级...
### J2EE面试题解析与知识点详解 #### 1. Java类是否可继承自多个类或实现多个接口? - **java.lang.Thread(T)**:表示`java.lang.Thread`类可以继承自一个类,实际上它继承自`java.lang.Object`。 - **java.lang....
**J2EE面试题收集(三大框架)** 在Java企业级开发中,三大框架——Struts、Hibernate和Spring——占据着核心地位。这些框架分别解决了Web应用中的展示层、持久层和业务逻辑层的问题,形成了高效且易于维护的开发模式...
面试中,J2EE相关的题目还会涉及到EJB(Enterprise JavaBeans)、Servlet、JSP、JMS(Java消息服务)、JTA(Java事务API)等技术。理解这些核心技术以及它们在实际应用中的作用,是成为一名合格的J2EE开发者的关键。...
J2EE面试题集锦涵盖了Java企业级应用开发的核心知识点,包括类的继承特性、抽象类与接口的区别、集合类的原理与比较、HTTP请求处理的不同方式、Web容器的概念、J2EE规范中的重要接口和服务,以及EJB的实现与分类。...
### J2EE面试题知识点详解 #### 1. MVC架构的理解及其实现方式 - **MVC**(Model-View-Controller)是一种软件架构模式,主要用于简化复杂的应用程序开发过程,提高开发效率并降低维护成本。 - **Model(模型)**...
### J2EE经典面试题及答案解析 #### 1. MVC的各个部分都有哪些技术来实现? 如何实现? - **Model(模型)**: 通常指的是应用中的业务逻辑部分,这部分可以通过JavaBean或者EJB(Enterprise JavaBeans)来实现。模型...
在深入探讨《2012年最新J2EE面试题》这一资料时,我们首先要明确J2EE(Java 2 Platform, Enterprise Edition)是Sun Microsystems(现为Oracle Corporation所有)开发的一套企业级应用开发平台标准。它主要针对大型...
本资源主要关注的是J2EE相关的面试题目,特别是与三大主流框架——Hibernate、Spring和Struts紧密相关的部分。这些框架在现代企业级应用开发中占据了核心地位,理解并掌握它们是成为合格J2EE开发者的关键。 ...
J2EE面试题大全,从JAVA基础到J2EE技术规范均有涉及
J2EE面试题涵盖了许多核心概念,这对于准备进入或已经在IT行业工作的人员至关重要。以下是针对题目中提及的一些关键知识点的详细解释: 1. **继承**: - `java.lang.Thread`、`java.lang.Number`和`java.lang....
J2EE面试题涵盖了多种技术和框架,这些都是开发企业级Java应用程序的关键组成部分。以下是一些核心知识点的详细说明: 1. **Hibernate**:Hibernate是一个流行的ORM(Object-Relation Mapping)框架,它使得Java...