2020-2022 The latest Android factory recruitment, social recruitment interview questions collection collection

Baidu

• Briefly describe memory leaks. Which memory leaks have you dealt with?
• Play 100 pictures at an interval of 100ms/picture, and each picture takes 400ms to load. How to design?
• How to quickly find the minimum value in an unordered array
• Briefly describe ANR in Android and why ANR occurs?
• Briefly describe the Handler message mechanism and internal implementation principle
• Hand tear a binary search algorithm of an ordered array
• List a performance optimization you have performed in an actual project
• Briefly describe the implementation of the singleton pattern and what the singleton pattern has Advantages and disadvantages?
• Briefly describe Java's exception handling mechanism
• How to communicate information between multiple threads?
• How does multithreading ensure thread safety?
• Briefly describe the thread pool
• Briefly describe the implementation mechanism of HashMap, how to solve the thread safety problem of HashMap?
• What are the application scenarios of the difference between TCP and UDP?
• Briefly describe the seven-layer network model
• Briefly describe the distribution mechanism of Android click events

Ali

Because they were all phone interviews, there was no hand tearing of the code, but a lot of questions about application scenarios were asked.

one side:

  1. Self introduction
  2. Seckill project (have you seen the smali code, tcp three-way handshake, https process, one-way authentication and two-way authentication, SSL, token, how does the server verify that data has been tampered with, what is this mechanism called (authentication?))
  3. activity launch mode
  4. The hashmap structure, principle, and thread safety in the data structure
  5. How to achieve thread safety, memory model
  6. How locks are used in memory and what is CAS
  7. How to implement thread 1 and thread 2 at the same time, and execute thread 3 (countLowndown, notify, thread pool) after both are finished
  8. How to communicate between processes
  9. Content provider principle, how to get URI, (exproted in manifest, default is false or true)
  10. Android freeze reasons, how to cause, ANR
  11. Algorithm: Flip the string into work am I
  12. How to download 10G files (how to ensure correct transmission (tcp+checksum), download in multiple threads,)
  13. Paging and segmentation in the operating system, how logical addresses are converted to physical addresses
  14. What courses did graduate students take?

Second side:

  1. Self introduction
  2. project
  3. Do you have any company internship experience?
  4. What are the sorting algorithms? Time complexity and stability of bubbling and quicksort
  5. Seven-layer model? What layer is the router on?
  6. The difference between http and https, what does the status response code mean?
  7. The startup process of APP and activity
  8. Usage scenario: The delay of the client and the server, how to prevent multiple deductions? Where is the order number generated? If it is generated on the server side, how to ensure that multiple order numbers will not be generated.

Three sides:

  1. Self introduction
  2. Project introduction, various questions, which ones are made by yourself
  3. UI rendering
  4. multithreading
  5. What is the thread pool size of different models of asynctask
  6. How to tell if an ad was seen
  7. Why do Android
  8. career planning

Tencent

•GC mechanism;
•Do you know about RxJava;
•How to troubleshoot memory leaks;
•The page of the app suddenly gets stuck, how to troubleshoot?
• How to check ANR? What is the definition?
• Which open source libraries
have you used; • What do you know about OKHttp? How is this frame design?
• What do you know about Databinding?
•Do you understand EventBus?
• What do you know about Android's annotations?
• How to choose RelativeLayout and LinearLayout? Why?
• What are the main processes of custom Layout?
• The sliding process is stuck, and the refresh rate is too low. How to troubleshoot?

Jingdong (School Recruitment)

one side

  • Self introduction
  • Why do Android
  • Talk about how to achieve quicksort, advantages and disadvantages
  • What is the XXXX project responsible for?
  • How does network request encapsulation work?
  • Is MVP encapsulated?
  • Have you seen the RxJava OkHttp Retrofit source code in the project?
    • Talk about the OkHttp source code
  • How to do the shortest path according to Dijkstra
  • How did you optimize the image loading
  • How to implement Glide's underlying cache (weak reference, L3 cache...)
  • How to achieve the waterfall effect
  • Have you learned about the latest technology (Jetpack)
  • A few examples of Jetpack
  • ViewModel,Rom
  • ask back

two sides

  • Self introduction
  • Tell me about a project, which one you are most familiar with
  • what the project did
  • How to encapsulate the network request framework
  • Did you encounter any problems?
  • Event distribution mechanism, how to deal with multiple RecycleView nesting
  • OkHttp source code
  • Talk about interceptors
  • How does Cache work?
  • Have you done pictures?
  • How to load the big picture in your picture project
  • How to prevent OOM
  • Have you done any performance optimization of View?
  • Talk about the optimization of View
  • Hierarchical layout
  • How to draw less
  • Is there any optimization for measure and draw?
  • What should I do if multiple views are loaded and stuck?
  • rhetorical question

Summarize

Share an Android learning PDF+architecture video+interview document+source note , advanced architecture technology advanced brain map, Android development interview topic materials, and advanced advanced architecture information shared by several big brothers , I hope it can help Everyone successfully got the offer they were satisfied with.

The above complete interview notes pdf are all shared for free, scan the QR code below to add the assistant Miss Sister WeChat to get it for free ↓↓↓

Please add image description

Guess you like

Origin blog.csdn.net/datian1234/article/details/123359396
Recommended