Refresher - source code analysis articles

01 Mind Map

Here Insert Picture Description

02 Question&Answer

Q1: AOP several key terms corresponding meaning?
A: focus, section, starting point.


Q2: AOP achieve the underlying principle?
A: pre-compiled and run on the way to achieve dynamic agent, the addition of a unified technology function without modifying source code.


Q3: AOP annotations and XML implementations?
A: Notes? Notice? Pointcut expression? Entry point? .


Q4: AOP application scenarios, for instance 3?


Q5: Classification affairs (2)? What advantages and disadvantages?
A: Code coarse-grained and fine-grained control? .


Q6: The main key concept notes and labels?
A: Accessibility? @ Target, @ Retention? . . .


Q7: Manually implementing transactions idea?
A: Defining Transaction Tools -> Define Transaction annotation class -> AOP processing section


Q8: What are the propagation of affairs?
A :? ? ?


Q9: XML technology which (three kinds)? What are the advantages and disadvantages?
A: Memory? flexible?


Q10: XML and Json technology differences and scenarios?
A: Bandwidth? Internet banking?


Q11: What is the IOC?
A: responsible for object management, decoupling


Q12: IOC underlying principle used?
A: reflection techniques + XML


Q13: IOC source implementation of ideas?
A: definition of annotation (such as Bean) -> XML file read -> Get reflection type -> determining whether the class has annotation -> initialize the class -> into the vessel IOC


Q14: SpringMVC running processes?
A: DispatcherServlet (central controller), HandlerMapping (processor mapper), HandlerAdapter (Processor Adapter), Handler (i.e. Controller), ViewResolver (view resolver)


Q15: SpringMVC running processes?
A: DispatcherServlet (central controller), HandlerMapping (processor mapper), HandlerAdapter (Processor Adapter), Handler (i.e. Controller), ViewResolver (view resolver)


Q16: Servlet life cycle?
A: Servlet load -> instantiation -> Services -> destruction


Q17: SpringMVC realization of the idea?
A: Load web.xml file to DispatcherServlet -> DispatcherServlet load configuration files, the class, instance objects to IOC container, and initializes HandlerMapping -> doGet doPost method or removed URL, HandlerMapping extraction method, reflection call.


Q18: SpringMVC realization of the idea?
A: Load web.xml file to DispatcherServlet -> DispatcherServlet load configuration files, the class, instance objects to IOC container, and initializes HandlerMapping -> doGet doPost method or removed URL, HandlerMapping extraction method, reflection call.


Q19: database connection pooling principle?
A: Object database connection pool management.


Q20: the difference between DBCP and C3P0?
A: idle connection? Connections? Greater than the threshold, the current connection with all connection is lost?


Q21: database connection pool realization of ideas?
A: define a container to manage? ? ?


Q22: two methods of interactive ways of MyBatis? And why to use interfaces?
A:? ? ?


Q23: MyBatis source implementation of ideas?
A: define JDBCUtils -> to achieve dynamic proxy processing


Q24: List interfaces inherited from what?
A:? ? ?


Q25: ArrayList underlying implementation?
A: array initialization size? Expansion size? Thread Is it safe?


Q26: Vector underlying implementation?
A: array initialization size? Expansion size? Thread Is it safe?


Q26: ArrayList source implementation of ideas?
A: define an array, initial size, expansion. . . . . .


Q27: Array of two ways copy? Scenarios? effectiveness?
A: Arrays.copyOf (), System.arrayCopy ( ). . . . .


Q28: the difference between a linked list (LinkedList) and Array?
A: Storage Area? Whether the memory in a row? When the modification affects performance? Usage scenarios (whether frequent changes)


Q29: linked list (LinkedList) source code to achieve?
A: Node Node is defined (before node information, service data, the node information)


Q30: Map principle underlying implementation (based on LinkedList)?
A: Array list +


Q31: Map and get the underlying put principle?
A: Is there a key to consider?


Q32: Map of the expansion mechanism?
A: * initial capacity actual capacity = load factor? Than to resize


Q32: Map implement the underlying principle (based on JDK1.7)?
A: according to the formula: * initial capacity actual capacity = load factor to achieve?

Released 2618 original articles · won praise 4883 · Views 390,000 +

Guess you like

Origin blog.csdn.net/qq_20042935/article/details/103869577