Some time ago participated in the Zhuhai far-light Java Development Engineer interview, I first interview, no experience plus preparation is not sufficient, fiasco. Here's a summary: lack of self-confidence
This is probably one of the most important reasons. Because of inadequate preparation and lack of experience in the interview, resulting in their own extremely nervous and abnormal performance, to answer questions often can not find the point (after several interviews also have such a problem, because of too much tension and knowledge accumulation is not enough, do not know which direction to answer the interviewer's question). Basic knowledge Learning to organize system
The first interview, there is no experience, although the previous preparation of some of the basic questions, but also understand a part. But there is no use, the reason is because the learning base is too fragmented. Interviewers always from shallow to deep questions, if the most basic "object-oriented three characteristics" do not know, how can someone ask you "stack memory allocation" problem.
my knowledge accumulated on the existence of such a problem, not system, there are shallow and deep, after the study to strengthen the summary, to form their own knowledge system. Summary of interview questions
First, the design pattern of the single case mode is what, there are several ways to achieve.
Reference: http://blog.csdn.net/jason0539/article/details/23297037/
1. Single Case Mode features:
A, a singleton class can have only one instance.
B, the Singleton class must create its own unique instance.
C, a singleton class must provide this instance to all other objects.
2. Common wording:
A, lazy type (thread unsafe)
Workaround:
(1) Plus synchronous synchronized
(2) Double check Lock:
Determines whether an instance is empty and locks if it is empty.
(3) Static inner class, static inner class defines static immutable instances
B, a hungry man (once loaded, it is loaded, inherently thread-safe)
C, registered single example (HashMap records the existence of static instances, and the use of a hungry man static instance construction method)
Two, the three main characteristics of object-oriented
Encapsulation, polymorphism, inheritance
Third, database paging optimization
Check the self-add primary key first, and then find the corresponding tuple you want to return. (For Mysql,limit (unique to MySQL)
Iv. the life cycle of the servlet
The lifecycle of a servlet is divided into 5 phases: loading, creating, initializing, processing customer requests, uninstalling.
(1) Loading: The container loads the servlet using the file corresponding to the Servlet class through the ClassLoader
(2) Create: Create a Servlet object by calling the Servlet constructor
(3) Initialization: Invoking the Init method initialization
(4) Processing customer requests: Whenever a client request is made, the container creates a thread to process the customer request
(5) Uninstall: Invoke the Destroy method so that the servlet frees up its own resources to occupy its own highlights
After the interview and senior communication, listening to his interview manager, found that in addition to the foundation of a solid, as far as possible to answer the interviewer asked questions, but also to show their own in a certain aspect of in-depth research, attract the interviewer eyeball.
Go ahead and refuel.