Three sides "to praise" Java post gains offer: Spring + JVM + + + distributed concurrent locking algorithm

 

Late departure, the beginning of the preparations for the interview also quite a long time to find a lot of review materials, brush a lot of problems on the Internet cast a lot of resumes final interview to praise, also had the privilege to get the offer!

I have two years of Java development, graduate, computer science, inquisitive, motivated! ! ! ! (In their own ability is quite accepted)

There praise: ask too much detail

one side:

1 Java concurrency techniques to understand it, to say the thread, juc thread pool, concurrent containers, blocking queue, atomic data types.

2 ask me how to achieve atomic data types, cas

3 What are the parameters of the thread pool, blocking queue using a normal queue it, not the answer, is blockingqueue

4 concurrenthashmap difference between hashmap and realize the principle of chm, under what scenario you use chm, why, I said multi-threaded query data, put may cover, or hashmap expansion may have dead links

5 in which the data structure, list, set, map, stack and queue also used.

6 Spring understand it, do not ask me about the five components, do not know, say ioc and aop. Then I asked how to achieve respectively, using xml configuration implementation class and annotate what's the difference, how to resolve their data.

7 Spring how a dynamically loaded into the bean bean container, not configured through configuration files, will not.

The principle 8 Spring aop, how to add a layer of dynamic proxy, I said to create the bean instance of proxy class generated during the direct

9 Spring's spring quartz know what must I do not know

10 spring source read it, understand it mvc, mvc said about the principles and process requests

11 hibernate and mybatis source seen it, no

12 How to achieve different environments automatically switch profiles, using a script or command, he said, can be achieved using hibernate annotations switch.

The difference between 13 nio and io, nio is blocked polling, how to use asynchronous notification mechanism, I say use aio registered asynchronous callback function.

14 nio packaging framework to understand what I said netty, see what depth, I said no in-depth look.

15 distributed services dubbo understand it, what features, how they achieve a dubbo, respectively, from my point of view and micro-rpc services that a bit. Q. What are my serialization.

16 mysql asked a few simple questions.

17 pairs of our understanding of it, but a little understanding.

Two faces:

1 project

What 2 Java memory model, heap and stack memory, respectively

3 Java deep copy and shallow copy

4 Spring aop of how to achieve, what is the principle of dynamic proxies

5 Spring MVC request procedure.

6 out of Spring, talk about the process of requesting browser

7 network programming this one, you know what, said socket and nio

8 nio underlying implementation is generally epoll, epoll talk about it.

9 mysql index talk about, is how to find secondary index of

The difference between the two engines 10 MySQL

11 hibernate orm of how to achieve, I'm talking about parsing xml and annotations, as well as jdbc package

How to achieve 12 hibernate affairs, I say jdbc transaction is realized.

13 distributed database query a table of the first ten data, id to be the inode hash, how to search. I said it to id hash, find query nodes, respectively.

14 The concept of distributed systems, data consistency if there is how to do, A cap and base

15 know which distributed technology, said the cache, load balancing, message queues, Hadoop

16 load balancing measure, I do not know

17 know which message queues, rabbitmq and kafka, Why kafka faster than rm, zero-copy answer the specific implementation principle wrong, should be to avoid copying the data to the application buffer directly using sendfile to transmit data.

18 hadoop understand what, hdfs file read and write mechanism talk about.

19 no problem

20 needs to be on-site interview, in fact, I do not want to face the scene, and then the next day sent me a rejection letter

Three sides:

1 self-introduction and project

2 Java's memory partition

Recovery mode 3 Java objects, collection algorithm.

4 CMS and G1 understand it, CMS solve any problem, you say about the recovery process.

5 CMS collection pause a few times, why should pause twice.

What will happen when the 6 Java stack memory overflow, Java heap it, speak a scene, I said collections hold objects.

7 how that collection classes to solve this problem, I said with a soft and weak references cited, then you talk about the difference between the two references to it.

8 Java in the lock understand what, say Lock and synchronized

9 they are used and what difference does it implement the principle, the use of words, synchronize methods and code blocks, you can lock objects and classes and methods, Lock general lock a block of code. Lock can be used with condition and use.

The principle, then, synchronized use the underlying mutex lock, the system needs to call, and then use Lock AQS achieved.

10 synchronized lock escalation process, said biased locking lock and then to heavyweight to lightweight lock, and then asked me how they are implemented, what the problem is solved, when lock escalation occurs.

11Tomcat understand it. Talk about class loader structure, and I did not know, he says something else.

12 I will ask what framework, Spring said, and asked me how to make the Spring bean A and B in order to load, I said dependencies, he asked how to achieve, and then said to use dependon comment, I said do not know.

13 beanfactory and applicationcontext What is the relationship, using what's the difference.

14 MySQL's sql optimization to understand it, to understand A index optimization.

15 He asked me how to optimize a sql, saying the slow log and explain.

16 MySQL Cluster from the main copy how to do, and how is the thread to do what things, what the use of the log.

17 CAP Theorem says, why only three selected two, why partition tolerance must be guaranteed.

18 usually understand what technology is at the expense of consistency to ensure the availability of, and I said message queue, he asked me MySQL is not, I say MySQL master-slave replication should be.

19 work in the A and P CAP is how to choose, I choose P said it, he meant the election A.

20 algorithm questions:

A: one billion the number of de-emphasis, I say do use hash fragments, he said that may not be uniform, and then I said bitmap, he said that digital how to do more, I would say the two bitmap. He said the next question it.

II: before one billion the number 10 to find the biggest, little can go over the top of the heap. He said that if you want to improve the efficiency of it, I said I could do fragmentation heap sort then merge to. He said OK.

Share a wave of my book review

Step1: Prepare a good resume

Want to get Ali Offer, you must first have a chance to interview Ali, manufacturers want to get an interview is not an easy thing, and resume, the interview is forced open the door key, key matches, will see whether a good resume. Many graduating students do not know how to make your own resume, just download a copy online, change to change personal information. In fact, the interview resumes manufacturers, value is not your personal preferences, nor is it involved in any club in school students pay more attention to your personal or practical ability. So, a good resume should include your personal grasp of technical points, if there are internship experience, participate in any project, what project to solve the problem, and so on.

Step2: prompt its soft power (knowledge and skills)

The second key is necessary to perfect their own strength, whether you are graduating students, or a good job a few years, whether it is social or school recruit recruit, recruit business is always perfect own strength, that is, your knowledge base, you the level of technology to meet the requirements, and the only way to enhance their soft power is: continuous learning.

Below I'll share some of my personal study documents , a friend in need get their choice:

Obtaining: Forward + comment on my article, I focus on, then private letter [interview] information to receive a free ~

  • Java core knowledge consolidation

Kenwan 283 pdf document (US group senior architect finishing)

Java part: Java foundation, collections, concurrency, multithreading, JVM, design patterns

Data structure algorithms: the Java algorithms, data structures

Open source framework part: the Spring, MyBatis, MVC, Netty, Tomcat

Distributed parts: architecture, Redis cache, Zookeeper, kafka, RabbitMQ, load balancing, etc.

Micro Services section: SpringBoot, SpringCloud, Dubbo, Docker

Java Core Knowledge

  • Spring family bucket (actual series)

  • Other e-book information

Step3: brush title

Since it is to the interview, then ultimately, brush the question, in fact, after the Spring Festival to go home, not going anywhere, I brush a lot of interview questions, so to be able to be aware of during the interview, basically clear the interview process will be asked what knowledge, high-frequency problem and what, so brush theme interview preparation process is a very important point.

The following is my interview possession exam:

Written in the last

A lot of people are saying that "learning useless", the reason actually produces useless, because they are learning with the match not on what you want, which means that their own is not enough to learn. Whether it is learning or work, you should have the initiative, so if manufacturers have a dream, then they would have their own efforts to achieve it.

More learning materials are free to run, and finally I wish you good health and successfully get the offer favorite!

Obtaining: Forward + comment on my article, I focus on, then private letter [interview] information to receive a free ~

 

Published 230 original articles · won praise 261 · views 110 000 +

Guess you like

Origin blog.csdn.net/weixin_45132238/article/details/104947681