Ant Financial Service Side:
Afternoon hangzhou phone, ask if there is free, decisive free, although feel slightly nervous, a little meng.
Interview Topics:
- The difference between HashMap and Hashtable
- Implement a HashMap that guarantees the order of iterations
- Let’s talk about sorting algorithms, stability, complexity
- Say the GC
- Guaranteed length of internship
- Career planning
On the whole, there are many basic questions on one side, so the bloggers have basically answered them, and it is still useful to have prepared them. So it was good after one meeting, and then the next afternoon it was a second one.
[] (https://blog.csdn.net/m0_5918…Ant Financial’s second interview
2 face interview is my most worry, because the second interview is the key, is one of the biggest is in charge of the interview, so is critical, as a whole, the second the rhythm is very fast, and a completely different, the interviewer is very hope I simply say that finish the answer, so the surface is not very good, when finished thought GG again, but finally fortunately, interview questions as follows:
- Introduce yourself.
- How does the JVM load a class, and what methods are in the parent delegate model?
- How is a HashMap implemented?
- The difference between HashMap and Concurrent HashMap is that Concurrent HashMap is thread safe and how Concurrent HashMap guarantees thread safety.
- HashMap differs from Hashtable, and is Hashtable thread-safe?
- What are the ways of interprocess communication?
- What regions is the JVM divided into, and what does each region do?
- How does the JVM GC, Gen, Gen, Persistent, and what does it store?
- Which of the reference accessibility analysis algorithms used by GC can be used as GC Roots objects?
- Quick sort, process, complexity?
- What is a binary balanced tree, how to insert a node, delete a node, say the key steps.
- How does TCP guarantee reliable transmission? Three handshakes?
- What is the difference between TCP and UDP?
- Sliding window algorithm?
- How does Linux process scheduling work?
- What are the most common commands you use on Linux?
- When does the operating system deadlock?
- What are the common hash algorithms?
- What is a consistent hash?
- How do you understand distributed locking?
- What are the paradigms in the database?
- What is the structure of the index in the database? When is an index appropriate?
- What are NIO, BIO, and AIO in Java?
- What tools are used to debug the program? JConsole, have you used it?
- Now a thread in the JVM is suspended. How to use the tool to find out the reason?
- How is thread synchronization related to blocking? Is synchronization necessarily blocked? Is blocking always synchronized?
- What’s the difference between synchronous and asynchronous?
- Have you used thread pools?
- How do I create a singleton pattern? Double checking, he says it’s not thread safe. How to efficiently create a thread-safe singleton?
- What has been used under the concurrent package?
- What are the commonly used databases? Has Redis ever used it?
- Know about Hadoop? What are the components of Hadoop? HDFS, hive, hbase, zookeeper. Talk about the MapReduce programming model.
- What open source protocols do you know about?
- What open source software do you know?
- What books have you been reading recently?
- Do you have any questions to ask me?
- What design patterns do you know? What design patterns have you used
- How do you determine if a singly linked list has a ring?
- How does the operating system schedule paging?
- What is an anonymous inner class? How do I access variables defined outside of them?
In the second interview, the interviewer asked urgently and I answered quickly, so I did not answer the two questions well. However, the interviewer made me feel a sense of respect, because he spoke quickly, but he could get to the point, and the most important words were very acceptable.
After the second interview, I got three phone calls that evening (I was really amazed at Ali’s efficiency)
Ant Financial has three sides
The three interviews are mainly about my project. After the previous interviews, I have gained a high interview experience at this time, so I don’t panic at all and answer the questions calmly. The three questions are as follows:
- Introduce yourself and what projects you have done.
- JAVA virtual machine area how divided, each area kinetic energy, this piece of free play.
- Which class loaders are loaded from top to bottom in the parent delegate model, and which classes are loaded?
- Is it possible for a parent class loader and a child class loader to load the same class? If the same class is loaded, which class should be used?
- How are the structures of HashMap, get(), put(), implemented? What are the problems with HashMap?
- ConcurrentHashMap get(), put(), and so on. What are the problems with ConcurrentHashMap? Is ConcurrentHashMap a read lock or a write lock?
- Differences between HashMap and Hashtable
- What is the difference between a sleep() and a wait() method? How is synchronized implemented under the hood? What’s the difference between a block of code and a method?
- What is a thread pool? If you were to design a dynamically sized thread pool, how would you design it? What are the methods?
- What is a deadlock? JVM thread deadlock, how can you tell what is the cause? If I use VisualVM and dump the thread information, what information will it have? That’s a lot of questions… I’m confused because I haven’t actually done the = =
- What commands have you used to view heap and thread information in the JVM virtual machine? I’ve only ever used VisualVM…
- What are the garbage collection algorithms? Does CMS know? How does it work?
- What is a transaction in a database? The isolation level of the transaction? What are the four characteristics of transactions? What are dirty reading, phantom reading, and unrepeatable reading?
- What is the structure of a database index? I say B tree and B plus tree, and he says those are the only two. I said full-text inverted index again. Then we introduce the structure of the B+ tree.
- How to write a paging query statement in a database?
- What is a consistent hash? To solve what problem?
- How does Redis’s storage structure, or how it works, differ from MySQL? What are the data types?
- Redis is used in the project, why Redis, know about other NoSQL databases? How do you use Redis in your projects? What is key? What is value?
- Merge sort? Time complexity? Spatial complexity?
- What sort do you usually use? Quick sort. Talk about what situations it works in and what situations it doesn’t work in.
- What do you do on a project? Because I used Solr, he asked me how does Solr work?
The last
I have also prepared a set of systematic learning materials for architects and BAT interview materials for your reference and study. Please click here to get them free of charge
Has sorted out the knowledge system (source code, notes, PPT, learning video) for free.
The get method:
Programming ebook, hold more…
More resources Baixiao website:
SpringBoot, Spring, MyBatis, Redis, RabbitMQ, SpringCloud, High Concurrency (continuous update)