preface

  • Position: I delivered the post of Java development in Hangzhou Research Institute.
  • Travel time: half a day between Nanjing = Hangzhou, 2 hours one way, 1 hour one way from Hangzhou East Railway Station = netease building (you can trigger from the city station if you can buy a high-speed train ticket).
  • Have a meal: can go to netease canteen, eat for free, as long as the person goes in, to have a meal time point can rub rice.
  • Interview: a total of 3, but I too dishes did not go to the HR face, but also satisfied, next time summarize experience to continue to struggle!
  • Content: Java core technology, multi-threaded concurrent programming, database, personal projects and topics, framework technology, etc. (I still remember some topics)

Technical side: about 65 minutes

1) Introduce yourself

  • Personal Information: That’s all in a minute

2) The difference between abstract classes and interfaces

  • Java Core Technology: After all that, a third question

3) If all methods in an abstract class are abstract, are they interfaces? Why do some classes implement multiple interfaces after inheriting a class?

  • Java Core Technology: I mentioned the interface isolation principle. I really don’t know what he expected

4) Which thread pools have been used by the thread pool in multi-threading?

  • Multithreading concurrency: not used, said some of their own understanding

5) Explain all the parameters in the thread pool

  • Multithreading concurrency: CorePoolSize, MaximumPoolSize, Factory and so on

6) The thread pool transition from CorePoolSize to MaximumPoolSize, and then keep asking me about the reverse transition

  • Multithreading concurrency: is the concurrency volume suddenly reduced, how to achieve this process, how to change the parameters

7) The entire process of sending a request and receiving a response via HTTP;

  • Web technologies: A bit of a drag on the flow between the client and the server

8) Explain the difference between 403 and 500 states;

9) In Taobao, according to 1-5 star stores, a total of 10 products of the same category are pushed out from five stores, all of which are randomly pushed. However, after a large number of random tests in the end, it is necessary to ensure that the number of products pushed by the five-star store is about five times that of the one-star store, without damaging other probability outputs

  • Thinking ability: I discussed this issue with him for more than 10 minutes, and finally he asked me if I had optimized it… How do I know how to optimize

10) How to change all keys in a HashMap that contains data to “netease + the original key”, meaning to add the prefix “netease” to all keys.

  • Java Core Technology: I said iterative processing, but there are fail-fast issues, and then I blabbergamed about synchronous operations

11) Spring AOP principle and underlying implementation

  • Frame technology: a little bit about the concept and reflection mechanism

12) Spring’s annotations; (Framework Technology)

13) the difference between static proxy and dynamic proxy; (Java core technology)

14) Differences between static proxy and adapter design patterns; (Java core technology)

15) The difference between TCP and UDP;

  • Computer network knowledge: from the reliability, communication, data size, application aspects said

16) CGlib low-level implementation; (Framework Technique: Mope)

17) Optimistic locking principle and implementation of database; (Database: muddled)

Almost so many, and remember, mainly is the actual problem to consider and discuss for a long time.

Second interview: also about an hour

1) The design principle and significance of database index

  • Databases: talked a little bit about the concept of clustered indexes, non-clustered indexes

Given a database, how to design an index? What should we pay attention to?

  • Database: I said I didn’t use it, I didn’t design it and basically, I talked about the syntax and the scenarios for using those indexes

3) Given the Taobao seckill scene, please design the system to achieve seckill

  • Thinking ability: again Taobao, I said multithreading, producers and consumers also pull up, he said that multi-node implementation, in fact, I did not understand what he wanted me to say…

4) For Weibo fans and followers, as well as user information, please implement database tables to associate these tables

  • Database: I drew a picture, and then talked about it, asked me if I have optimized, I said no

5) According to the table I designed, query the operation, ask me how many times after all the tables are queried. (Database)

6) What project did the previous intern do? Let me explain. (Project Experience)

7) With respect to the project, what should I do if the collection cannot be stored when massive data is proposed

  • Java core technology: I really can’t think of a method, so I said to split the file and then save the collection.

8) Explain the transaction principle in Spring;

  • Framework technology: only said a declarative transaction, the rest is not understood

9) Explain the transaction principle of the database;

  • Database: I just talked about isolation levels and dirty reads, non-repeatable reads, and phantom transactions

10) Handwrite the JDBC connection to the database code

  • Java core technology: really don’t remember, only remember the process and class, directly wrote a bunch of comments up

10) What are the transaction features of the database? (Database)

11) What do you do? (Individual Project)

12) Is communication biased toward software or hardware? Why Learn Java

  • When I heard this, I broke down a little bit. According to my intuition, GG (career development planning)

13) Finally, what do you want to ask me?

  • Question period: I really want to ask him whether he is engaged in database, most of them are database, abuse dead. I finally asked two small questions and told me to go back to the front desk to wait for an announcement

Sure enough, the second interview ended. After all, I was a poor technical person, mistreated as a dog, had little project experience, and was overwhelmed by the two interviewers’ practical questions. After the internship, I didn’t prepare anything when I went to meet these companies. I just prepared to have a tour around Hangzhou. I was satisfied with that.

Here I would like to recommend the JAVA interview materials given by brother ali, recently in learning feel very good, a lot of people have been interviewed into ali by it, recently ready to learn and fight ali again, ha ha ha. Need the original file to study, canClick here to