Remember the first interview (Ali side) cool~

Ali face to face - 24 minutes (Android post)

Question and part of your answer

em.... I didn't introduce myself at first, I started straight away, a little bit caught off guard.
1. Have you ever used generics, when have generics been used, and what are the benefits of generics?
2.Whether while(true) will lead to an infinite loop, and whether while(true) is very CPU-intensive.
3. Talk about the producer-consumer model.
4. How to implement the producer-consumer model.
5. Is HashMap thread safe? (I answered no), if you want thread safety, which class is needed. (I answered ConcurrentHashMap, the next question is stupid.)
6. Do you understand the internal implementation of ConCurrentHashMap? (I haven't seen the source code of the concurrent package class).
7. Is HashMap ordered? (I'm talking about disorder here, LinkedHashMap is ordered, by the way, there is a doubly linked list structure inside LinkedHashMap)
8. What do you know about design patterns, talk about it. (Several ways of singleton, builder mode, observer mode, etc. are mentioned here)
9. Have you seen the jdk source code? (I said that I have seen things in the collection package before, such as HashMap, ArrayList, LinkedList, and then the interviewer did not ask...)
10.Fragment life cycle. (I didn't answer this, it's really fatal... I forgot about this)
11. Have you used LayoutManager and how to use RecyclerView to implement ViewPager's style. (If the answer is not good, I just answered one using LayoutManager to set before using RecyclerView)
12. Do you have any experience in web development? Which web frameworks have you used? (em...experience, but the framework has not been used)
13. How to ensure the security of the client and server. (I answered https, and briefly described the process, which is not very good)
14. What should I do if the https certificate expires.
15. Are the certificates installed in the browser?
16. How does the client obtain this certificate. (I don't know)
17. Which Android frameworks have been used. Have you seen the source code? (I haven't read the source code. The interviewer may not know how to ask the next question. Just ask about the advantages.)
18. What are the advantages of the so-and-so framework.
19. Anything else to ask.

Summarize

On the one hand, there is the resume evaluation. Many questions are asked based on the things on my resume. Now I find that there are still many holes in my resume, and I have tricked myself. The interviewer was very nice, and there were times when I didn't think of how to answer, and the interviewer kept guiding me. It's this interviewer who speaks really fast. . . Several times I didn't hear it clearly. Embarrassing to explode. It is said that large companies like to ask about java foundation, jvm, concurrency, and HashMap implementation principles or projects. In the past two weeks, I have reviewed a lot of jvm and high concurrency knowledge and various principles, but abstract things are always easy to forget. For Android, I thought the interviewer would ask some more in-depth questions about Handler, IPC, sliding conflict, BitMap and ListView optimization. As a result, the interviewer asked a lot of how to use something, and deeply realized the truth of not touching your hands for three days. I haven't written Android code for a long time, and I forgot about it. Probably the interviewer wants to find an entry point to go deeper. Unexpectedly, I didn't have an answer. The more and more nervous the answer is, it also shows that it is time to review the basics of Android. em... It should be cool this time, come on later, try to get an internship offer from a big factory.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325640511&siteId=291194637