Servlets 面试题与答案
Question: When we don't write any constructor for the servlet, how does container create an instance of servlet?Answer: Container creates instance of servlet by calling Class.forName(className).newInstance(). |
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容:
- What is Servlet?
- Why is Servlet so popular?
- What is servlet container?
- When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
- If a servlet is not properly initialized, what exception may be thrown?