Master Enterprise Java Development with 30 MCQs on Java EE (Jakarta EE)
Enhance your understanding of Java EE (Jakarta EE) with 30 expertly crafted MCQs covering core topics like Enterprise JavaBeans (EJB), Java Message Service (JMS), JavaServer Faces (JSF), and more.
@EJB@Stateful@Stateless@MessageDrivenremove() in EJB is used to:
sendMessage()send()post()publish()MessageConsumer interface is used to:
@ManagedBean annotation is used to:
h:formjavax.servlet@WebServletjavax.ejbfaces-config.xml file in JSF?
| Qno | Answer |
|---|---|
| 1 | B) To develop robust, scalable enterprise-level applications |
| 2 | C) JAX-RS |
| 3 | A) Java SE |
| 4 | C) To manage lifecycle and transactions of components |
| 5 | D) JUnit |
| 6 | B) Framework providing necessary objects to a class |
| 7 | A) Jakarta EE |
| 8 | A) JPA (Java Persistence API) |
| 9 | B) Enterprise components like EJBs and servlets |
| 10 | A) Distributed business logic |
| 11 | A) To manage business logic and transaction control |
| 12 | D) Entity Query Bean |
| 13 | B) Do not maintain client state between method invocations |
| 14 | A) Message-Driven Bean |
| 15 | B) Stateful Session Bean |
| 16 | B) Application Server |
| 17 | C) Database connectivity |
| 18 | C) @Stateless |
| 19 | A) Automatic and declarative transaction management |
| 20 | A) Remove a bean from the container |
| 21 | B) To handle messaging between Java applications |
| 22 | A) Point-to-Point and Publish/Subscribe |
| 23 | C) Java EE |
| 24 | B) send() |
| 25 | B) Receive messages from a queue |
| 26 | B) Building user interfaces for web applications |
| 27 | A) Managed beans |
| 28 | B) Create a bean that can be accessed by JSF pages |
| 29 | A) h:form |
| 30 | A) To define managed beans |