essay of interview pen TestHow to create a deadlock. How multithreaded programming ensures thread safety 1, threads are in a multithreaded environment, thread safety can ensure that multiple threads execute the program at the same time is still running correctly, and to ensure that for shared data can be accessed by multiple threads, but at the same time only one thread to access. It is generally implemented by means of locking. Work using the design pattern and simply describe its use of scenarios with high cohesion, low coupling understanding of what caching frameworks you have used to understand. Please brief and explain the reason for use and its effect what are the automatic assembly modes in spring? What are the relevant annotations and what are the limitations please describe the implementation principle of pagination briefly describe the principle and advantages of SPRINGIOC, and explain how to manage things in a project in conjunction with a project you've done.
1, the creation of the class and dependencies written in the configuration file, injected by the configuration file, to achieve a loose coupling.
2. The life cycle of objects and the relationships between objects are given to spring to manage.
3, the control of what was reversed. Is that the way to get dependent objects is reversed
4. In programs that do not have IOC, we use the creation of object-oriented programming objects and the dependencies between objects to be completely hard-coded in the program, the creation of an object is controlled by the program itself, and when the control is reversed, the creation of the object is transferred to a third party, which the individual thinks is the reverse of the way in which the dependent object is obtained. Several ways the IOC creates objects
1, call the parameterless constructor
2. With Parameter Builder
3, Factory Creation objects: Static method to create objects, non-static methods to create objects spring IOC relies on injection for two ways: annotation and XML, which actually say XML is enough,
Spring IOC's three injection modes: 1, interface injection. 2, Setter injection. 3, constructor injection class constructor, member variable, static method and construction code block loading order of the parent class. Optimize the following SQL select Job_desc from JOBS where job_id=jobs_job_id to the Select COUNT (*) from EMPLOYEE where () <>0; If you want to implement a tool class Commonutils, how is the best way to achieve. According to the responsibility chain pattern, please write a case. Data dirty read what kind of a scene, with what isolation level can simply exclude this phenomenon. https://www.cnblogs.com/xuwujing/p/7613084.html How do I create a thread pool Redis there are several data structures and scenarios used by Message Queuing? How to analyze SQL to optimize SQL Which went to the index which does not go to the index to say you used the multithreaded class synchronized front plus static and the difference. class variables. Tell me about your usual table structure design database engine what power to solve JVM lock Java memory model CMS garbage collector
About Threadlocal
Basic state and state relationships of threads
Scope of Spring Bean
The difference between error and exception, when you must use a try Catch
The difference between overloading and overriding
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.