2017年11月29日 星期三

QUESTION 31

During initialization, a servlet finds that the database connection it requires is unavailable. As the system designer, you know that the database start up completes several minutes after the webcontainer initializes the servlet. How should this be handled?


A. Retry the connection until it is successful, then allow the init () method to complete.
B. Throw a ServletException
C. Throw the IOException
D. Throw an UnavailableException


Correct Answer: D

沒有留言:

張貼留言