A servlet needs to acquire a data source through a JNDI naming lookup. Which of the following is the best place to do this?
A) Constructor
B) init method
C) service method
D) doGet method
Correct Answer:
Verified
Q15: Can servlet class declare constructor with ServletConfig
Q16: Java Servletsare efficient and powerful solution for
Q17: .......... is the first phase of the
Q18: The service phase of the servlet life
Q19: GET methods are great for sending ..........amounts
Q20: Several vendors are adding ........... to their
Q21: Which of the following code is used
Q23: What's the difference between servlets and applets?
Q24: Which of the following code retrieves the
Q25: When destroy() method of a filter is
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents