Applications in a J2EE architecture

  1. must be created via a Java IDE.

  2. can run on different machines, but only with the same Operating System.

  3. are typically based on Servlets, JSPs and Enterprise Java Beans.

  4. need no runtime environment.


Correct Option: C

AI Explanation

To answer this question, we need to understand the key components and architecture of a J2EE (Java 2 Enterprise Edition) application.

Option A) "must be created via a Java IDE" - This option is incorrect because J2EE applications can be developed using any text editor or Integrated Development Environment (IDE) that supports Java development. While a Java IDE can provide features and tools to streamline the development process, it is not a requirement for creating J2EE applications.

Option B) "can run on different machines, but only with the same Operating System" - This option is incorrect because J2EE applications are designed to be platform-independent. They can run on different machines with different operating systems as long as the Java Virtual Machine (JVM) is installed on the target machine. This allows the J2EE application to be deployed and run on various platforms, such as Windows, Linux, or macOS.

Option C) "are typically based on Servlets, JSPs, and Enterprise Java Beans" - This option is correct because J2EE applications are commonly built using a combination of Servlets, JavaServer Pages (JSPs), and Enterprise Java Beans (EJBs). Servlets handle the request-response cycle, JSPs provide the presentation layer, and EJBs handle the business logic and data persistence.

Option D) "need no runtime environment" - This option is incorrect because J2EE applications require a runtime environment to execute. The J2EE runtime environment, also known as an application server or container, provides the necessary infrastructure and services for the application to run, such as managing components, handling transactions, and providing security.

Therefore, the correct answer is C) J2EE applications are typically based on Servlets, JSPs, and Enterprise Java Beans. These components work together to create a scalable and robust architecture for building enterprise-level applications.

Find more quizzes: