The difference between 1.Mybatis and Ibatis
MyBatis implements interface binding, which is more convenient to use.
In ibatis2.x we need to specify which XML mapping file is specific to the DAO implementation class,
And MyBatis realizes the binding of DAO interface and XML map file, which automatically generates the concrete implementation of interface for us, which makes it more convenient and easy to use.
Improved object-relational mapping for higher efficiency
The difference between 2.HTTP1 and HTTP2
- HTTP2 is using binary transfer, HTTP1. X is text (string) transfer
- HTTP2 Support multiplexing
- HTTP2 Head Compression
- HTTP2 Head Compression
3.SpringMVC Execution Process
- User sends request to Dispatchservlet
- Dispatchservlet queries the specific handler based on the request path
- Handlermapping returns a handlerexcutionchain to Dispatchservlet Handlerexcutionchain:handler and interceptor Collection
- Dispatchservlet calling the Handleradapter adapter
- Handleradapter calls the specific handler processing business
- Handler processing ends returns a specific modelandview to the adapter modelandview:model--> data Model,view--> view name
- The adapter will modelandview to Dispatchservlet
- Dispatchservlet The view name to the Viewresolver view parser
- Viewresolver returns a specific view to the Dispatchservlet
- Render View
- Show to users
What memory areas do 4.JVM memory overflows specifically refer to? What exception will be thrown?
In addition to the program counters, several other runtime areas of the virtual machine memory have the possibility of OutOfMemoryError (OOM) exceptions
Specific analysis reference: https://www.cnblogs.com/binyue/p/3927105.html
5. Talk about the understanding of Ajax
Jax is the abbreviation for asynchronous JavaScript and XML, which enables a good user experience by requesting additional data from the server without uninstalling the entire page. The traditional HTTP request process is probably the case, the browser sends a request to the server-〉 server based on the browser data generated response-〉 server response back to the browser-〉 browser refresh the entire page display the latest data, the process is synchronous, sequential execution.
AJAX uses asynchronous data transfer (HTTP request) between the browser and the WEB server to get the information from the server, where the asynchronous is the request, load, and so on, which is separated from the current browser page, which means that you can do this without reloading the entire Web page. Using JavaScript to accept data from the server, and then manipulate the DOM to update the new data to a part of the page, the most intuitive feeling to use Ajax is to get new data to the server without having to refresh the page to wait.
6. Talking about the understanding of affairs
http://blog.csdn.net/fengchao2016/article/details/70207222
Can 7.String be inherited? Why?
Because Sting is defined as: Public final class String extends Object with final keyword, so it cannot be inherited
8. Talk about inheritance and aggregation
Https://www.cnblogs.com/xdp-gacl/p/4058008.html
9. What are deep and shallow copies?
In the previous blog, there are written
10. Say a few common run-time exceptions
- ClassCastException (class conversion exception)
- Indexoutofboundsexception (array out of bounds)
- NullPointerException (null pointer)
- Arraystoreexception (data store exception, type inconsistency when manipulating arrays)
- Bufferoverflowexception Exceptions for IO operations
What is the problem with introducing generics in 11.JDK?
If within a class, the member variable is not known at the beginning of the use of the time will be assigned to why the type, it is very headache, type conversion is also a big problem.
12. Talk about the relationship between hashcode and equals
If two objects are the same, their hashcode values must be the same
If two objects have the same hashcode, they are not necessarily the same
Equals () equal to two objects, hashcode () must be equal
Equals () is not equal to two objects, but does not justify their hashcode () inequality
13. Talk about reflection mechanism
In the previous articles have been collated
14. What are the common JVM setup parameters?
-xms3550m, initializes the heap size. Usually the same as the-XMX size setting, avoid the virtual machine to adjust the heap size after frequent automatic calculation.
-xmx3550m, maximum heap size.
-XX:PERMSIZE=512M, set the permanent generation initial value.
-xx:maxpermsize=512m, set the maximum value for the permanent generation.
Note: Java8 does not have a permanent term, they are called meta-space,-xx:metaspacesize=n
What is 15.Spring boot?
Essentially, Springboot is a framework that focuses on frameworks. Spring boot is the integration of various frameworks, making them easier to integrate, simplifies our templating configuration in the integration process, and does the spring bean configuration that you would do without it.
16. Talk about the characteristics of spring things
In the previous articles have been collated
17.Spring What kinds of things management mechanism?
http://blog.csdn.net/jeamking/article/details/43982435
What does 18.ACID mean?
Atomic (atomicity)
Consistency (consistency)
Isolation (Isolation)
Durability (persistent)
19. Talk about the Btree and B+tree algorithms in MySQL
Https://www.cnblogs.com/vianzhang/p/7922426.html
20. Talk about the application scenarios for in and exists MySQL
Select * from where exists (Select*fromwhere a.id=b.id); Select * from where inch (Select from B);
1, exists is to do Loop loop, each loop loop and then query the internal table (sub-query), then is the index of internal query use, and the appearance of most need to traverse, unavoidable, so the table large use exists, can speed up efficiency;
2, in is the appearance and inside the table to do hash connection, first query the inner table, and then the inner table results and the appearance of matching, the appearance of the use of index, and most of the inner table need to query, unavoidable, so the appearance of large use in, can speed up efficiency.
Java Polygon Question set