table of Contents
android
1, Activity life cycle
2. Activity startup mode and functions and usage scenarios
3. What are the Android animations? What is the difference between?
4. Android event distribution mechanism
5. View drawing process
6. Sliding conflict
7, AyscTask asynchronous message processing
8,Handler
9, Handler methods to prevent memory leaks
10. Customize View
11. AIDL transfers custom objects
12. Android has several processes, the priority is the size;
13, Sqlite upgrade, add, delete, modify and check SQL statements
14. LRUCache caching mechanism and principle
15. What are the communication between Android processes?
16, Handler mechanism and implementation principle, how to solve memory leaks
17, Binder communication mechanism and principle
18. What is the principle of ARote routing
19. Write a routing framework yourself?
20, MVVM framework
21. How does WebView prevent memory leaks?
22, 5.0 to 10.0 adaptation and new functions
23, NDK memory leak problem
24. What are the asynchronous implementations of Android
25. The difference between BroadcastReceiver static registration and dynamic registration
26. How to achieve process keep-alive
27, Doze power saving mode
28, the difference between pandingintent and intent
Answer: a. Intent is used immediately, while PendingIntent can be triggered after the event occurs, PendingIntent can be cancelled
b. Intent is terminated after the program ends, and PendingIntent is still valid after the program ends
c. PendingIntent comes with Context, and Intent needs to run in a Context
d. Intent runs in the original task, PendingIntent runs in the new task
29, the difference between marge, include, viewstub
30, Service life cycle
31, Fragment life cycle
32. The difference between the replace and hide methods in Fragment
33. What is ViewHodler and when is it used?
Java
1. What is GC
2. Thread synchronization
3. JVM memory is divided into several parts
4. Use a pen to describe it with an object-oriented mind
5. How to realize the graceful (normal) exit of the thread (thread), can not use stop andinterrupt方法非正常退出
6. What is the difference between List Set Map? Each implementation class, and explain the difference between the implementation class
7, HashMap working principle, why thread is not safe
8. Four Java Citations
9. The difference between soft references and weak references
10, super large number string addition
11. New features of Java 8
Answer: https://www.bilibili.com/video/BV14W411u7Ly
12. Why does Java have no coroutines
Answer: Because Java already has the concept of thread pool
13, what is the role of final
14. Overloading and rewriting
15, polymorphism
16. How to judge whether the URL contains baidu.com
17, the difference between String, StringBuffer, StringBuilder
18, JVM related
Answer: https://www.bilibili.com/video/av83622425?p=30
19. How many states does a thread have?
20. What is object-oriented?
The internet
1. TCP and UDP
2. What are the default ports for http and https
Answer: The default port number of HTTP is 80
The default port number for HTTPS is 443
3 , MQTT
4. What is the difference between get and post requests
5. TCP three-way handshake
6. The difference between get and post requests in https
Kotlin
1. What is a coroutine
2. Kotlin realizes singleton
3. The difference between == and === in kotlin
Project experience
1. Flow chart of resuming transmission after power failure
2. The solution for one thread to wait for another thread to finish executing?
Answer: The thead join() method can realize the above scenario;
3. Process keep alive
4. Is MD5 encrypted?
5. What are the third-party libraries used?
6. The difference before MVC, MVP, MVVM
7. What are the common ways to keep alive the Android process?
8. What is the difference between modularization and componentization
9. How does JNI prevent memory leaks
algorithm
1. Handwritten bubble sort
Design Patterns
1. Are you familiar with the chain of responsibility design pattern?
2. What are the commonly used design patterns?
3. Two implementations of singleton mode, and their advantages and disadvantages
4. The builder pattern and examples
5. Factory model and examples
6. The difference between the three factory models
Performance optimization
1. What causes memory leaks
2. Have done those performance optimizations
Jetpack
What components have been used in Jetpack
High frequency problem
Performance optimization
Memory leak
Process keep alive