All Practice Exams

100+ Free Java EE 7 Application Developer Practice Questions

Pass your Oracle Certified Professional, Java EE 7 Application Developer (Exam 1Z0-900) exam on the first try — instant access, no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
100+ Questions
100% Free
1 / 100
Question 1
Score: 0/0

A developer wants a CDI producer method to supply a configured object (for example a non-bean third-party class) for injection elsewhere. Which annotation declares this producer method?

A
B
C
D
to track
2026 Statistics

Key Facts: Java EE 7 Application Developer Exam

$245

Exam Fee (USD)

Oracle

66%

Passing Score

Oracle

~70

Question Count

Oracle

120 min

Exam Duration

Oracle

No expiry

Credential Validity

Oracle

Pearson VUE

Exam Provider

Oracle

Oracle's Exam 1Z0-900 leads to the Oracle Certified Professional, Java EE 7 Application Developer credential. It costs $245 USD, delivers about 70 multiple-choice and multiple-select questions in 120 minutes, and requires a 66% passing score through Pearson VUE; the certification does not expire. It covers Java EE architecture, JPA persistence and Bean Validation, EJB business logic, JMS messaging, JAX-WS SOAP services, servlets and JSP, JAX-RS REST services, JSF, security, and the CDI, Concurrency, Batch, and WebSocket APIs.

Sample Java EE 7 Application Developer Practice Questions

Try these sample questions to test your Java EE 7 Application Developer exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1In the Java EE 7 platform, which container is responsible for managing the lifecycle of servlets and JSP pages?
A.The web container
B.The EJB container
C.The application client container
D.The applet container
Explanation: The web container manages the execution of web components such as servlets, JSP pages, JSF, and WebSocket endpoints, providing services like request dispatching, security, concurrency, and lifecycle management for these components. EJBs run in the EJB container instead.
2A developer needs to package a Java EE 7 application that contains both web components (a WAR) and enterprise beans (an EJB JAR) for deployment to an application server. Which archive type is designed to bundle these modules together?
A.A JAR (Java Archive)
B.An EAR (Enterprise Archive)
C.A RAR (Resource Adapter Archive)
D.A CAR (Client Archive)
Explanation: An EAR (Enterprise Archive) is the top-level deployment unit that can contain one or more web modules (WAR), EJB modules (JAR), and a deployment descriptor (application.xml) so the whole enterprise application deploys as a single unit. WAR and EJB JARs can also be deployed standalone, but only an EAR groups multiple module types.
3Which statement correctly describes the role of a deployment descriptor such as web.xml in a Java EE 7 web application?
A.It is mandatory for every Java EE 7 web application and must declare all servlets
B.It contains the compiled bytecode for the application's servlets
C.It provides XML-based configuration that can supplement or override annotation-based configuration
D.It is processed only by the EJB container, never the web container
Explanation: Since Servlet 3.0, web.xml is optional because components can be configured with annotations such as @WebServlet. When present, web.xml supplies XML configuration and, with the metadata-complete attribute or matching elements, can override or supplement annotations. The web container, not the EJB container, processes it.
4In a typical multi-tier Java EE 7 application, which tier is primarily responsible for implementing business logic and transactional services?
A.The client tier
B.The web tier
C.The EIS (Enterprise Information System) tier
D.The business tier
Explanation: The business tier hosts enterprise beans (and CDI beans) that encapsulate the core business logic and benefit from container services such as declarative transactions, security, and concurrency. The web tier handles presentation, and the EIS tier represents back-end systems such as databases.
5Which Java EE 7 technology provides type-safe dependency injection and contextual lifecycle management that 'knits together' the web tier and the business tier?
A.CDI (Contexts and Dependency Injection)
B.JNDI
C.JTA
D.JCA
Explanation: CDI (Contexts and Dependency Injection, JSR 346 in Java EE 7) provides type-safe injection via @Inject, well-defined contextual scopes, producers, qualifiers, interceptors, and events, unifying the web and business tiers. JNDI is a lookup API, JTA handles transactions, and JCA integrates external systems.
6Which of the following is NOT one of the standard Java EE component types that the web container directly manages as a Java EE web component?
A.Servlet
B.Stateless session bean
C.JSP page
D.JavaServer Faces (JSF) framework
Explanation: Servlets and JSP pages are the core Java EE web components managed by the web container. A stateless session bean is an enterprise bean managed by the EJB container, not a web component. JSF is a web application framework built on top of servlets rather than a distinct low-level component.
7How does a Java EE 7 component most commonly obtain a reference to a container-managed resource such as a JDBC DataSource declared in the environment?
A.By instantiating it directly with the new operator
B.By reading it from a properties file at startup
C.By resource injection using the @Resource annotation or a JNDI lookup
D.By extending the DataSource class
Explanation: Container-managed resources like DataSources, JMS connection factories, and destinations are obtained through resource injection with @Resource or via a JNDI lookup, letting the container manage pooling, security, and transactions. Directly using new bypasses the container and its services.
8Which Java EE 7 specification standardizes the validation of bean data using annotations such as @NotNull and @Size, and is used by JPA, JSF, and JAX-RS?
A.Java Persistence API (JSR 338)
B.Expression Language (JSR 341)
C.Common Annotations (JSR 250)
D.Bean Validation (JSR 349)
Explanation: Bean Validation (JSR 349 in Java EE 7) defines constraint annotations like @NotNull, @Size, @Min, and @Pattern plus a validation runtime, and it integrates with JPA entity lifecycle events, JSF inputs, and JAX-RS resources. It is the cross-cutting validation standard of the platform.
9What is the primary purpose of the @PostConstruct annotation (from JSR 250 Common Annotations) on a managed bean method?
A.To mark a method that runs after dependency injection completes but before the bean is put into service
B.To mark a method that runs each time a business method is invoked
C.To register the method as a transaction callback
D.To expose the method as a REST endpoint
Explanation: @PostConstruct designates a lifecycle callback that the container invokes once, after all dependency injection is complete and before the bean handles any business request. It is the correct place to perform initialization that depends on injected resources.
10Which statement best distinguishes the responsibilities of the web container from the EJB container in Java EE 7?
A.The web container manages persistence while the EJB container renders HTML
B.The web container handles HTTP request/response and presentation; the EJB container provides transactional, secured business components
C.Both containers are identical and interchangeable
D.The EJB container handles HTTP requests while the web container manages distributed transactions
Explanation: The web container processes HTTP requests and responses and hosts presentation components (servlets, JSP, JSF), while the EJB container hosts enterprise beans that receive declarative transaction, security, and concurrency services. The two containers have distinct, complementary roles.

About the Java EE 7 Application Developer Exam

Exam 1Z0-900 leads to the Oracle Certified Professional, Java EE 7 Application Developer credential, validating the ability to design, build, and deploy enterprise Java applications on the Java Platform, Enterprise Edition 7. The blueprint spans Java EE architecture and packaging; persistence with JPA entities and Bean Validation; business logic with EJB session and message-driven beans; messaging with the JMS 2.0 API; SOAP services with JAX-WS and JAXB; web applications with servlets, JSP, and JSF; REST services with JAX-RS; application security; and the CDI, Concurrency Utilities, Batch, and WebSocket APIs. Questions include scenario and code-reading items that require choosing the correct annotations, lifecycle behavior, and API usage.

Questions

70 scored questions

Time Limit

120 minutes

Passing Score

66%

Exam Fee

$245 (Oracle (Pearson VUE))

Java EE 7 Application Developer Exam Content Outline

~10%

Understanding Java EE Architecture

Describe Java EE 7 standards, containers, APIs, and services; differentiate the web, business, and EIS tiers and their containers; obtain resources via injection and JNDI; and package and deploy WAR, EJB JAR, and EAR archives with optional XML descriptors.

~14%

Managing Persistence using JPA Entities and Bean Validation

Create entity and relationship ORM mappings, use EntityManager for persist, merge, find, and locking, manage the persistence context and dirty checking, write JPQL and named queries, apply key generation and AttributeConverters, and enforce Bean Validation constraints.

~12%

Implementing Business Logic using EJBs

Develop stateless, stateful, and singleton session beans and their lifecycles; apply container-managed transaction attributes such as REQUIRED and REQUIRES_NEW; use @Asynchronous, @Schedule timers, singleton concurrency, and EJB security and exception semantics.

~8%

Using Java Message Service (JMS) API

Apply point-to-point and publish/subscribe models, the JMS 2.0 simplified API with injected JMSContext, message-driven beans implementing onMessage, message types and selectors, durable subscriptions, and transacted JMS within JTA.

~8%

Implementing SOAP Web Services using JAX-WS

Create @WebService endpoints and consume WSDL contracts, bind XML with JAXB, customize SOAP messages with @WebParam and @SOAPBinding, add SOAP handlers for cross-cutting concerns, and invoke services asynchronously from clients.

~12%

Creating Java Web Applications using Servlets and JSPs

Map servlets with @WebServlet, handle HTTP methods, headers, parameters, and cookies, use filters and request.startAsync, manage request, session, and application scope, forward with RequestDispatcher, and build views with JSP, EL, and JSTL.

~11%

Implementing REST Services using JAX-RS API

Define resources with @Path and HTTP-method annotations, bind parameters with @PathParam and @QueryParam, negotiate content with @Produces and @Consumes, return Response objects, use filters and ExceptionMapper, call the JAX-RS 2.0 client API, and integrate CDI and EJB.

~8%

Developing Web Applications using JSF

Understand the six-phase JSF lifecycle, build Facelets views with deferred EL, expose CDI @Named backing beans, use @ViewScoped for multi-postback state, apply converters and validators, and enable partial processing with f:ajax.

~7%

Securing Java EE 7 Applications

Apply declarative security with @RolesAllowed, @DeclareRoles, @PermitAll, and web.xml security-constraint; configure authentication methods such as BASIC and FORM and transport guarantees; and perform programmatic checks with isUserInRole.

~10%

Using CDI Beans, Concurrency, Batch and WebSocket APIs

Use CDI injection, scopes, qualifiers, producers, events, interceptors, and decorators; run tasks on a ManagedExecutorService (JSR 236); define chunk jobs with the Batch API and JSL (JSR 352); and build WebSocket endpoints with @ServerEndpoint and @OnMessage (JSR 356).

How to Pass the Java EE 7 Application Developer Exam

What You Need to Know

  • Passing score: 66%
  • Exam length: 70 questions
  • Time limit: 120 minutes
  • Exam fee: $245

Keys to Passing

  • Complete 500+ practice questions
  • Score 80%+ consistently before scheduling
  • Focus on highest-weighted sections
  • Use our AI tutor for tough concepts

Java EE 7 Application Developer Study Tips from Top Performers

1Memorize the EJB container-managed transaction attributes (REQUIRED, REQUIRES_NEW, MANDATORY, SUPPORTS, NOT_SUPPORTED, NEVER) and exactly when each starts, joins, or suspends a transaction.
2Know JPA cold: persist vs merge vs find, the persistence context and dirty checking, JPQL syntax over entity names, fetch defaults (to-one EAGER, to-many LAZY), and optimistic versus pessimistic locking.
3Practice the JAX-RS annotations in code: @Path, @GET/@POST, @PathParam vs @QueryParam, @Produces/@Consumes, returning Response, and using ExceptionMapper and the JAX-RS 2.0 client API.
4Master CDI scopes and resolution: @RequestScoped, @SessionScoped, @ApplicationScoped, @ConversationScoped, qualifiers for ambiguity, producers, events with @Observes, and interceptors.
5Trace the six-phase JSF lifecycle and remember which phase runs conversion and validation, when the model is updated, and how f:ajax triggers partial processing.
6Review JMS 2.0 specifics, especially the injected container-managed JMSContext, the onMessage callback in message-driven beans, message types, selectors, and topic durable subscriptions, plus the Batch API chunk reader-processor-writer model.

Frequently Asked Questions

What are the current exam facts for 1Z0-900?

Oracle's Exam 1Z0-900 costs $245 USD and is delivered through Pearson VUE. It presents about 70 multiple-choice and multiple-select questions, allows 120 minutes, and requires a 66% passing score. The resulting Oracle Certified Professional, Java EE 7 Application Developer credential does not expire.

What does the 1Z0-900 exam cover?

It covers ten areas: Java EE architecture, JPA persistence and Bean Validation, EJB business logic, the JMS API, JAX-WS SOAP services, servlets and JSP, JAX-RS REST services, JSF, application security, and the CDI, Concurrency, Batch, and WebSocket APIs.

Is 1Z0-900 about Java EE or Jakarta EE?

Exam 1Z0-900 is validated for Java EE 7, using the javax.* package namespace. Jakarta EE is the successor platform managed by the Eclipse Foundation and uses jakarta.* packages, but the 1Z0-900 exam itself tests Java EE 7.

Do I need to read Java code on the 1Z0-900 exam?

Yes. Many questions show code snippets or scenarios and ask which annotation, lifecycle behavior, or API call is correct, so comfort reading JPA, EJB, servlet, JAX-RS, and CDI code is important.

Does the Java EE 7 certification expire?

No. The Oracle Certified Professional, Java EE 7 Application Developer credential earned by passing 1Z0-900 does not have a stated expiration date, although the underlying platform has since evolved into Jakarta EE.

What is the best way to prepare for 1Z0-900?

Work hands-on through the official Java EE 7 Tutorial, building small apps that combine JPA entities, EJBs, JAX-RS, and CDI, then drill practice questions and review explanations for both correct and incorrect options to close knowledge gaps.