Can a servlet create one or more instance objects?

Source: Internet
Author: User

In the interview, for beginners, this is not a simple problem, not too much work experience, this question you are not sure, because usually who will think of such a strange problem. Even programmers who have worked for a few years don't know it, because they don't have that kind of problem. So that's really a good question for an interview.

A servlet can actually create one or more instance objects.

A servlet can produce more than one Servlet object by specifying a different <servlet-name><url-pattern> and the same <servlet-class>

A very simple question, but did you ever think of it. In the interview if you test this question, you say the above sentence, and then write an example come out, do not worry about time, even if you have a few ways not to do, it does not matter, the examiner will be your answer to the question shocked, you can answer the questions, is a how many work experience, so he will find ways to stay you, And not you begging him to stay down.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.