Java side by Collection: CMS + red-black tree + + transaction isolation thread state middleware +

Jobs immediately enter the peak, a summary of BAT (Ali, Baidu, etc.) Senior Java interview questions related to the collection to everyone, hope the next job in the interview will be helpful to everyone.

2019 end of the article there is the latest BAT senior java face questions related to the answer - for reference

JVM
architecture JVM memory model
garbage collection algorithm the JVM?
What GC, each JVM difference there?
Method area and direct memory when it will oom?
JVM memory model G1 collector and CMS memory model What is the difference?
jvm tuning used it?
How to view java memory usage (jconsole, command jmap, jstack etc.)

Collection
Arraylist, linkedlist difference scenarios;
HashMap in JDK1.8 What changes?
What is the difference HashCurrentMap and HashMap in?
Hashmap when to use red-black tree?

Multithreading
several state of the thread, draw specific state flow diagram?
Java wait, the difference between sleep?
How volatile implement instruction reordering?
If blocking queue thread pool is full of how to do (deny policy)?
Synchronized and AQS similarities and differences, AQS fair unfair how;
multi-threaded inside to add and subtract to an integer why not use volatile;
voliatile and synchonized What is the difference? Lock package provided by jdk synchonized and what is the difference?

Algorithm
binary tree traversal width of
the red-black tree
data structure, then the basics of linked lists, trees, graphs have to understand the
understanding preorder traversal of the tree, preorder, postorder traversal. Breadth-first search algorithm graph, depth-first search algorithm.

The Spring
Bean's life cycle;
what is DI, why the type DI, DI's (constructor injection, the method of injection);
differences in Spring boot and spring of, tomcat how to embed how / spring boot spring boot in tomcat is started;
the Spring how to resolve circular dependencies;
database
difference Join (inner, left, right) of?
Union and union all the difference?
ACID, specifically do you mean?
Transaction isolation level?
Phantom reads and non-repeatable reads difference?
Mysql and mongodb what's the difference?
Computer network
difference between RPC and http are
described in detail the process of TCP four waved
middleware
spike projects which will be used to middleware?
Why Redis is single-threaded?
Redis database and how to ensure a consistent double-write?
How to design a message queue middleware?
After the sub-library sub-table, id primary key of how to deal with?
How to design a similar Dubbo's RPC?
More than summarize senior BAT (Ali, Baidu, etc.) Java interview questions collection, the following is a small series finishing the interview maps, and advanced Java will answer questions (collated as a pdf file), for reference ~

Java side by Collection: CMS + red-black tree + + transaction isolation thread state middleware +

Java side by Collection: CMS + red-black tree + + transaction isolation thread state middleware +

Full coverage: Ali, Tencent, byte beating, Baidu, fight a lot, Jingdong, the United States and other front-line group of well-known Internet companies.

Content includes: redis, high concurrency, multithreading, micro-services, distributed, MySQL, database, threads, locks, jvm, Java virtual machine, spring and so on.

Receive mode: Click on the link to join a group chat [Java Advanced Learning Exchange Architecture]: https://jq.qq.com/?_wv=1027&k=5ieAHh6 receive free

Guess you like

Origin blog.51cto.com/14207399/2436872