编程知识 cdmana.com

How to go on my android road in 2021? Tencent T3 boss explained it himself

First side

The interviewer looks young , It feels like a young man who has just graduated , The voice is very green, ha ha
At the beginning of the interview, I was confused , I just woke up at noon , I haven't calmed down yet

Computer network part :

1.http What is a set of processes ?

2.https What is the process of initiating a connection ?

3.http What fields are included in the request header of the request ?( I forgot a lot of fields here , Only three or four , Purring )

4. once http What is the structure of the request ?( This is because of the network problem , Heard it three times , Finally understand the interviewer's meaning , Purring )

operating system :

1. Can you briefly talk about the difference between threads and processes ?

2. Do you know how to communicate between processes ?

3. know of Messenger Do you ?( know , But the bottom layer is still used AIDL+Handler In the form of ,AIDL The bottom layer is still used Binder drive )

database :

1. Can you briefly explain how the database modifies the data in a table ?

2. What keywords should be used to add a field to a table ?

Java:

1. Can you tell me a little bit about Lock,synchronize,CAS The relationship between , And specific practical scenarios ?

2. Can you elaborate on CAS What is? ?AtomicInteger How to realize thread safety ?

3. Can you briefly explain the specific lock upgrade mechanism ?

4. Can you briefly talk about the agent model ? What's the difference between a dynamic proxy and a static proxy ?

Android:

1. Can you briefly talk about the event distribution mechanism ?

2.MeasureSpec.UNSPECIFIED What does that mean? ? If the outer layer ViewGroup The pattern is AT_MOST, The inner layer is match_parent, So what is the final pattern passed to the inner layer ?(AT_MOST)? ? ps: This question is meaningless

( Listen to you View There is scrollTo,scrollBy, So let's analyze a scenario problem )

3. Scene question : First of all, there's a FrameLayout, There are two nested layers View, We're rewriting onTouchEvent When , How to make the top View Slide and expose the lower layer View?( There's a pit here , The interviewer said scrollTo、scrollBy, I'm just thinking about how to expose the lower class View, Finally, it suddenly occurred to me that the whole... Can be adjusted by events View The location of the layout )

Source code :

1. Have you seen those excellent open source frameworks ?

2. Know the design patterns related to the source code ?

3.HashMap Let's briefly talk about the principle

Two sides :

On the second side is a female interviewer , Age may be 40 s

Design patterns :

1. Familiar with those design patterns ?

2. How is the underlying dynamic agent implemented ?

3. Tell me about Retrofit Dynamic proxy for

Java:

1. Can you tell me a little bit about JVM What is the purpose of the memory model and what areas are distinguished in memory ?

2. Let's talk about the memory recycling mechanism ?

3. A complete and detailed description of the class loading mechanism

4. Let's talk about the parent delegation principle of class loader ?( There is a question , I said that the parent-child class loader is not an inheritance relationship , Then the interviewer said not quite right , Here I have a little question , Please also tell us )

5. Can you tell me Java .class The structure of the file ?

6. Do you understand the basic mechanism of thread pool ? How do non core threads guarantee delayed end ?

7. Why does the inner class hold the reference of the outer class by default ?

Android:

1.Handler The message mechanism is simple ( How delayed messages are sent ? And by Looper.loop() How to handle delayed messages ?)

2. Why? Handler There will be a memory leak ?

3.View Medium post and handler Of post What's the difference? ?( I said, view Medium handler It's rewritten , Will deal with View Related drawing events , Then the interviewer said that only part of the answer was right , I have some questions , Is there any other difference ?)

4. Is there any useful framework for memory leak detection ? Do you know the principle ?( That's what it says JVM Memory recovery mechanism )

5. Do you know anything about performance optimization ? Can you tell me a little ?( Layout , asynchronous , Transition drawing )

6. Can you talk about it Activity Start the process of ?

7. I heard you talk about interprocess communication ,PackageManagerService and ActivityManagerService What is the way of communication ?

8.Binder Understand the underlying principle of driving ?(mmap Memory address mapping )

9.Serializable and Parcable What's the difference? ? How to use ?

10. Listen to you sp(SharedPreference), You know, sp Can you communicate across processes ?

summary

Android Advanced architecture learning is a long and arduous road , You can't rely on a moment of passion , It's not something you can learn by staying up for a few days and nights , We must form the habit of studying hard at ordinary times . therefore : Persistence is the key !

The byte beating company shared above 2021 Analysis of real interview questions in , The author also organized the main interview technical points of front-line Internet enterprises into videos and PDF( In fact, it took a lot more energy than expected ), Contains the context of knowledge + A lot of details .
2021 my Android How can I get there , tencent T3 The boss explained it himself _Android

【Android Advanced architecture video learning resources 】

Android Part of the intensive video learning is even more powerful ! March BATJ Big factory, etc ( Prepare for war )! Now it's said that the Internet winter , It's just that you got on the wrong car , And wear less ( Skill ), If you get on the right car , I have strong technical ability , The cost of replacing the company is high , How could it be cut off , It's all about eliminating the end of the business Curd nothing more ! Nowadays, there are a lot of junior programmers in the market , This tutorial is for Android Development Engineer 1-6 People in 、 It's in a bottleneck period , I want to break through my salary increase in the next year , Advanced Android Middle and advanced 、 The architect is more like a fish in water for you , Get it quickly !

This article has been  CODING Open source project :《Android Summary of learning notes + Mobile architecture video + The real interview question of Dachang + Project source code 》 Included

版权声明
本文为[mb6128e77bb3cd5]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/10/20211002151515605B.html

Scroll to Top