Top 80+ Solved J2EE Technologies MCQ Questions Answer
Q. What represents a persistent global data from the database?
a. Entity Bean
b. Session Bean
c. Both A & B
d. None of the above
Q. Which component does the Entity bean represents the persistent data stored in the database?
a. Server-side component
b. Client-side component
c. server and client side component
d. None of the above
Q. In EJB, middleware services are provided by EJB Container automatically.
a. True
b. False
c. none
d. all
Q. Which middleware services are provided by EJB?
a. Security
b. Transaction Management
c. Both A & B
d. None of the above
Q. Which server-side component is required to be deployed on the server?
a. EJB
b. RMI
c. Both A & B
d. None of the above
Q. Which type of instances retain no data or conversational state for a specific client?
a. Message-Driven Bean
b. Session Bean
c. Entity Bean
d. None of the above
Q. How constructor can be used for a servlet?
a. Initialization
b. Constructor function
c. Initialization and Constructor function
d. Setup() method
Q. Can servlet class declare constructor with ServletConfig object as an argument?
a. True
b. False
c. none
d. all
Q. Java Servletsare efficient and powerful solution for creating .......................for the web.
a. dynamic content
b. static content
c. hardware
d. both and b
Q. ..................... is the first phase of the servlet life cycle.
a. Initialization
b. Service
c. Destruction
d. Both a and b
Q. The service phase of the servlet life cycle represents all interactions with requests until the servlet is ......................
a. created
b. running
c. initiated
d. destroyed
Q. GET methods are great for sending ....................amounts of information that you do not mind having visible in a URL.
a. negligible
b. huge
c. small
d. both and b
Q. Several vendors are adding ...................... to their existing database .................
a. JDOBC, middle-ware products
b. JDBC drivers, upper-ware products
c. middle-ware products, JDOBC drivers
d. JDBC drivers, middle-ware products