Learn J2EE MCQs

Prepare J2EE MCQs (Multiple choice Questions) for exam and job interviews.

What is the purpose of `EJB` in J2EE?

1) Business logic processing

2) Session management

3) Handling HTTP requests

4) Serving static files

Answer : Business logic processing

Which protocol does `SOAP` use?

1) HTTP

2) TCP

3) FTP

4) SMTP

Answer : HTTP

What does `RMI` stand for?

1) Remote Method Invocation

2) Request Management Invocation

3) Remote Message Invocation

4) Resource Management Interface

Answer : Remote Method Invocation

Which of these is NOT a lifecycle method in a servlet?

1) init()

2) destroy()

3) service()

4) start()

Answer : start()

Which of these is used to define security constraints in web.xml?

1) <security-constraint>

2) <context-param>

3) <servlet>

4) <session-config>

Answer : <security-constraint>

What is the function of `EJB` in J2EE?

1) Handle business logic

2) Manage HTTP requests

3) Render web pages

4) Handle messaging

Answer : Handle business logic

Which J2EE technology is used for rendering web pages?

1) JSP

2) EJB

3) JDBC

4) JNDI

Answer : JSP

Which of the following is NOT a J2EE technology?

1) JMS

2) JSP

3) Swing

4) Servlet

Answer : Swing

Which component handles requests from a web client in J2EE?

1) Servlet

2) EJB

3) JMS

4) JDBC

Answer : Servlet

Which of the following is NOT an advantage of J2EE?

1) Scalability

2) Platform Independence

3) Reusability

4) Poor Security

Answer : Poor Security