Participated in Siemens ' Java intern interview
1. Introduce yourself, this is basically the standard for all interviews
2. Introduce the design patterns you have used
Single-case mode, Factory mode,
3. Single-Instance mode write
I forgot to add the static, the sin
4. Write a quick sort
I'm just going to say a little bit.
What tags are in 5.jsp and which built-in objects
outRequestResponsePageContextàrarely used.SessionApplicationCOnfigàrarely used.ExceptionPageàrarely used.
6.servlet workflow, but also life cycle
3The whole life process:
Load ClassLoader
Instantiation of New
Initialize init (servletconfig)
Processing Requests Servicedoget DoPost
Exit service Destroy ()3Only one object3Procedures in the API:
Init ()//execute only once, first time initialization
Publicvoid init (servletconfig config) throwsservletexception
Service ()
public void Service (ServletRequest req,servletresponse res) throws Servletexception, Java.io.IOException
Destroy ()//webapp at the time of exit
Publicvoid Destroy ()
Siemens China Research Institute Java Intern interview