Dachang's Android interview questions

Not much to say, go straight to the dry goods.

A well-known online education company

  1. Introduce how to implement MVP in your own project;
  2. Customize the View process;
  3. Talk about performance optimizations, memory leaks and memory overflows encountered in the project;
  4. How to interact with native and h5;
  5. event distribution process;
  6. The difference between http and https, and the difference between post and get;
  7. Algorithm: Intersect two singly linked lists and find the intersection node;
  8. Algorithm: Get the k-th element from the bottom of the singly linked list;

famous security company

  1. Activity startup mode and application scenarios;
  2. Handler mechanism and the relationship with Message, etc.;
  3. Several ways to communicate with Service, the difference between inter-process communication and intra-process communication;
  4. Handwritten code to achieve thread deadlock;
  5. Write two simple interest modes by hand, and tell the advantages and disadvantages;
  6. How to realize the side sliding deletion of RecyclerView;
  7. Basic understanding of http, tcp/ip, difference between post and get;
  8. Why inner classes cause memory leaks;
  9. How to add header and footer to RecyclerView and why it is possible;
  10. How RecyclerView implements complex layouts;
  11. Algorithm: In an integer array, only two numbers appear once, and the rest appear twice, find these two numbers, and give the time complexity;

Famous job search company

  1. View's receipt process, three modes of onMeasure method;
  2. Draw the hierarchy of Window;
  3. Handler, Looper principle;
  4. Tell me about the picture frame you designed;
  5. Glide source code;
  6. Understanding of RxJava;
  7. Event distribution mechanism, down, up and move of TouchEvent;
  8. How the hotfix is ​​implemented in the project, or which hotfix library is used;
  9. Handwritten implementation of database SQLiteOpenHelper;
  10. What is done in the main method of ActivityThread;
  11. Causes of memory leaks, common scenarios and how to deal with them;
  12. Layout optimization, how to prevent overdrawing;

A company with a name that sounds huge and rich

  1. Advantages and disadvantages of RxJava;
  2. The path represented by home/user/a/../b/./c, the handwritten code outputs the absolute path;
  3. Knowledge of system cameras;
  4. View's receipt process;
  5. Glide source code, introduce your own picture framework;
  6. Handwritten to achieve quick sorting;
  7. Introduce the proxy mode;
  8. The characteristics and advantages and disadvantages of MVC and MVP;

Well-known online loan company

  1. Activity life cycle, startup mode;
  2. How to display multiple activities at the same time;
  3. Write the singleton pattern by hand and explain why;
  4. How to prevent overdrawing;
  5. Introduce the source code you have read;
  6. How to implement disk cache;
  7. JVM garbage collection mechanism;

A takeaway team under a large factory

  1. Introduce the Activity task stack;
  2. RxJava principle, RxJava executes 5 tasks at the same time, whether it is parallel or serial;
  3. Activity startup process;
  4. The drawing process of View, the meaning of the two parameters in the onMeasure method;
  5. What framework have you encapsulated yourself, and introduce the principle;
  6. Optimization and difference between ListView and RecyclerView;
  7. How to set up listeners for RecyclerView's Adapter and say the best solution;
  8. Introduce one of the most satisfying things you have ever done;
  9. Generics? What does it mean, and what happens if a type that does not meet the conditions is added;
  10. The double-checked lock in the singleton mode, if the class lock is replaced by another class declared internally, what will the effect be?

For more exciting content, pay attention to my WeChat public account - Android motor vehicle
write picture description here

Guess you like

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