当前位置:网站首页>Android byte beat one side, was hanged by the interviewer! Fortunately, we got the offer from three sides

Android byte beat one side, was hanged by the interviewer! Fortunately, we got the offer from three sides

2020-11-09 12:58:36 I'm sorry.

Personal background : Double mid stream 985, Non - technical background , There is Netease Android Internship experience , Here is the interview experience of Qiu Zhao .

Byte side (60 minute / hang )

  • Introduction to Internship Program ; How to achieve it ; Why use reflection ;XML The way of parsing ;DOM and SAX The difference between parsing ; Classification of annotations ;ButterKnife Realization principle
  • MVP What's the model like ; How to achieve it ;P How layers are implemented *
    Why choose OkHttp library ; How the interceptor chain is implemented ; Where is your own interceptor ; How to do it DNS Of ;
  • be in onResume Of activity a start-up activity b How the lifecycle is called in chronological order ;onSaveInstanceState Fang *** When to call
  • View Event distribution mechanism of ;ACTION_CANCEL When is it called , commonly switch-case How to deal with ;
  • Android Common causes of memory leaks ;Handler What is the process of causing a memory leak ; What tools have been used to solve the memory leak problem ;LeakCanary How does it work ;MAT How to do memory leak analysis ;
  • HTTP2 and HTTP1.1 The difference between .HTTP/2 Analysis of new features
  • Handwritten algorithm questions . A two-dimensional array , Left to right order , Top down order , How to find a value .
  • See what source code ; How to see the source code ; How to learn Android

These are some of the questions I asked , It's really over before it starts , It's really like being hanged , There was also a period of depression , I can't find a job , Until a friend of meituan gave me the opportunity to push in meituan , And then I started my interview with meituan .

Because of the first failed interview , Let me attach great importance to this interview , I remember it clearly , After the interview, I took detailed notes .( Received offer)

image

It is mainly divided into the following parts :

(1)Android Interview questions

(2)Java Interview questions

(3) Advanced development technology interview questions

One 、Android Interview questions

Android The interview questions include Android Basics , There are also some source level 、 Principles, etc . So I want to go to meituan for an interview , Be sure to look at the source code and Implementation , Common frameworks can try their own handwriting to achieve , Exercise yourself . ( One )Android Basic knowledge points

  • What are the four components
  • The life cycle and simple usage of the four components
  • Activity The way of communication between
  • Activity Life cycle in all cases
  • When the horizontal and vertical screens are switched ,Activity Life cycle in all cases
  • Activity And Fragment Life cycle comparison between
  • Activity There are Dialog When you press Home The life cycle of the bond
  • Two Activity Which methods will be executed when jumping between ?
  • Switch from the front to the back , And then back to the front desk ,Activity Lifecycle callback methods . eject Dialog, Lifecycle callback method .
  • Activity Comparison of four startup modes of
  • Activity The state is preserved in recovery
  • fragment Life cycle in all cases
  • Fragment State of preservation startActivityForResult What kind of method is it , Under what circumstances ?
  • How to achieve Fragment The slide of ?
  • fragment How to transfer data between ?
  • Activity How and Service binding ?
  • How the Activity Start the corresponding Service?
  • service and activity How to interact data ?
  • Service How to open it
  • Please describe Service Life cycle of
  • Talk to you about ContentProvider The understanding of the
  • say something ContentProvider、ContentResolver、ContentObserver The relationship between
  • Please describe the broadcast BroadcastReceiver The understanding of the
  • Classification of broadcasting
  • The way the broadcast is used and the scene
  • stay manifest And how to register and use BroadcastReceiver?
  • What's the difference between local broadcasting and global broadcasting ?
  • BroadcastReceiver,LocalBroadcastReceiver difference
  • AlertDialog,popupWindow,Activity difference
  • Application and Activity Of Context The difference between objects
  • Android Property animation features
  • How to import an external database ?
  • LinearLayout、RelativeLayout、FrameLayout The characteristics and comparison of , And introduce the usage scenarios .
  • Talk about the understanding of interface and callback
  • The principle of callback
  • Write a callback demo
  • introduce SurfView
  • RecycleView Use
  • The function of serialization , as well as Android The difference between the two serialization
  • Differentiator
  • Estimator
  • Android How to store data in

( Two )Android Source code correlation analysis

  • Android Animation framework implementation principle
  • Android Versions API The difference between
  • Requestlayout,onlayout,onDraw,DrawChild Differences and connections
  • invalidate and postInvalidate The difference and use of
  • Activity-Window-View The difference between the three
  • Talk about right Volley The understanding of the
  • How to optimize customization View
  • Low version SDK How to implement higher version api?
  • Describe the flow of a network request
  • HttpUrlConnection and okhttp Relationship
  • Bitmap Understanding of the object
  • looper framework
  • ActivityThread,AMS,WMS How it works
  • Customize View How to consider model adaptation
  • Customize View Events
  • AstncTask+HttpClient And AsyncHttpClient What's the difference? ?
  • LaunchMode Application scenarios
  • AsyncTask How to use ?
  • SpareArray principle
  • Please introduce ContentProvider How to realize data sharing ?
  • AndroidService And Activity There are several ways to communicate with each other
  • IntentService What are the principles and functions of ?
  • say something Activity、Intent、Service What's the relationship
  • ApplicationContext and ActivityContext The difference between
  • SP Is it process synchronization ? What's the way to synchronize ?
  • On Multithreading in Android The use of
  • The process and Application Life cycle of
  • encapsulation View How do you know view Size
  • RecycleView principle
  • AndroidManifest The role and understanding of

Two 、Java Interview questions

Have a good command of java It's very important , Big companies don't just ask you to use a few api, More is to make you familiar with the principle of source code implementation , Even if you know what's wrong , How to improve , Some more java Some algorithms about , Design patterns and so on .
( One 、)Java

  • HashMap and HashTable as well as CurrentHashMap The difference between .
  • synchronized and volatile 、ReentrantLock 、CAS The difference between .
  • JVM Class loading mechanism 、 Garbage collection algorithm comparison 、Java Virtual machine structure, etc .
  • Java Four quotes from
  • Java The generic ,<? super T> and <? extends T> The difference between .
  • Java What are the states of a thread , What locks are there , The difference between locks .
  • final 、finally、finalize difference .
  • The difference between interface and abstract class .
  • sleep 、wait、yield The difference between ,wait How to wake it up ?

3、 ... and 、 Advanced development technology interview questions

One 、 picture

1、 Picture library comparison

2、LRUCache principle

3、 How to load pictures

4、 To realize the image library by yourself , How do you do it? ?

5、Glide The source code parsing

6、Glide What cache to use ?

7、Glide How to control the size of memory cache ?

Two 、 Networks and security mechanisms

1. Network framework comparison and source analysis

2. Design your own network request framework , How do you do it? ?

3. Network request cache processing ,okhttp How to deal with network cache

4. Load a from the network 10M Pictures of the , Talk about the precautions

5.TCP Of 3 Three handshakes and four waves

6.TCP And UDP The difference between

7.TCP And UDP Application

8.HTTP agreement

9.HTTP1.0 And 2.0 The difference between

10.HTTP Message structure

11.HTTP And HTTPS And how to achieve security

12. How to verify the validity of a certificate ?

13.https Where to use symmetric encryption , Where to use asymmetric encryption , For encryption algorithms ( Such as RSA) Wait to see if you understand ?

14.client How to make sure the messages you send are server received ?

15. Talk to you about WebSocket The understanding of the

16.WebSocket And socket The difference between

17. Talk about your understanding of Android signature .

18. Please explain why Android needs to add a signature mechanism ?

19. Encrypted video transmission

20.App How to sandbox , Why do you do this ?

21. Authority management system ( How does the underlying authority work grant Of )?

3、 ... and 、 database

1.Sqlite upgrade , Add field statement

2. Database framework comparison and source code analysis

3. Database optimization

4. Database data migration

Four 、 pluggable 、 modularization 、 Componentization 、 Hot repair 、 Incremental updating 、Gradle

1. Understanding of hot fixes and plug-ins

2. Analysis of plug-in principle

3. Modular implementation ( benefits , reason )

4. Hot repair 、 pluggable

5. Understanding of project componentization

6. Describe the click Android Studio Of build What happened after the button

5、 ... and 、 Architecture design and design patterns

1. Talk to you about Android Understanding of design patterns

2.MVC MVP MVVM Principles and differences

3. What design patterns do you know ?

4. Design patterns commonly used in projects

5. Handwriting producers / Consumer model

6. Write the code for the observer pattern

7. Adapter pattern , Decorator mode , Similarities and differences in appearance patterns ?

8. Some open source frameworks used , Introduce a source code , Internal implementation process .

9. Talk about right RxJava The understanding of the

10.Rxjava Send event steps

11.RxJava The role of , The advantages and disadvantages of asynchronous operations compared with the usual use

12. say something EventBus effect , Realization way , Instead of EventBus The way

13. from 0 Design a App The overall architecture , How to do it ?

14. Tell me about an application that you think is currently popular and Design ( such as : live broadcast APP,P2P Finance , Small video, etc )

15. Talk about right java State machine understanding

16.Fragment If in Adapter How to decouple the use of ?

17.Binder Mechanism and underlying implementation

18. How to do this for application update ?( answer : Grayscale , Force update , Sub regional update )?

19. Achieve one Json Parser ( You can speed it up by regularizing )

20. Count the starting time , standard

6、 ... and :Android Framework
1.Android System architecture

2.View Event distribution mechanism of ? How to solve the sliding conflict ?

3.View Drawing process of ?

4. Cross-process communication

5.Android What is the system startup process ?

6. Start a program , You can click the icon on the main interface to enter , Can also be From a program Jump past , What's the difference between them ?

7.AMS An explanation of important family terms

8. Some open source frameworks used , Introduce a source code , Internal implementation process .

The above is the analysis of the real questions I met in meituan interview , Hopefully that helped ; All interview materials and answers have been compiled into PDF file , It's all for free , Because of the limited space of the article , Can't show all of , Friends in need are in my GitHub Upload and download .

image

I believe that many people often encounter a lot about resume production , Career confusion 、HR Classic interview questions answers and other questions about the interview . Similarly, I also collected and sorted out a full set of resume production 、 Jin San Yin Si she Zhao confused 、HR Analysis of interview and other questions , And my own way of learning :

1. Project experience

Project experience varies from person to person , Pick out the bright spots , Prepare from four aspects :

  • The realization of function module
  • What effect has been achieved
  • What's the problem , How to solve it
  • Related knowledge points involved

Project experience and knowledge points It's actually a two-way process , want Trying to find a connection between them :

  • When it comes to project experience , so to speak : finish xx after , I also went to learn about yy The principle behind it ,xxx, What is embodied here is Do you have a thirst for knowledge .
  • When it comes to knowledge , so to speak :yy The principle of this is , stay xx How I used it to solve problems in the project , What is embodied here is Do you have the ability to put knowledge into practice .

2. Problems encountered

Be sure to prepare , Very important ! When it comes to knowledge, we should also make clear .

Usually the project may be busy , I'm in a hurry to solve the problem . But learn to write down the questions first , Follow the steps below , Expound methodically :

  • Have a problem
  • The analysis process
  • Solution
  • result

3. Knowledge reserve

When a lot of people are preparing for an interview , Most of them will , Open the baidu , Input “Android Interview questions ”, Look for more .

Although it seems natural , But it's not a kind of Healthy way , The function of an interview question should be to find and fill in the blanks , When I was in school, I didn't hand out exercise books directly, and then I studied the answers ?

There's a problem , be called How to learn efficiently , There is an answer in it that I think is in line with my own point of view , Namely Build your own knowledge system , The purpose of establishing knowledge system is to :

  • Consolidate memory .
  • Know yourself , Find your strengths and weaknesses .
  • Grasp the progress of review .
  • Summary of experience .

** summary :** First , Interview is a process of knowing yourself , Know the difference between yourself and the outside world . what's more , Technical interview is a two-way understanding process , Let the other person find out your shining point , At the same time Try to find the other person's flash point , Because he may be your colleague or leader in the future , therefore , When the interviewer asks you any questions , Don't say no more , To try to understand what he's doing 、 Understand the atmosphere of the team .

Looking for a job is nothing more than looking at three points : With whom 、 What to do 、 How much is it , To give these three in their own heart to divide a proportion .

All the interview materials and answers in this article have been compiled into PDF file , It's all for free , Because of the limited space of the article , Friends in need are in my GitHub Upload and download .

In addition to the above experience sharing , At the same time, I also collect and sort out 2020 Year byte jumps , And Tencent , Ali , Huawei , Interview questions of Xiaomi and other companies , Sort out the interview requirements and technical points into a large and complete “ Android Architects ” interview Xmind( In fact, it took a lot more energy than expected ), contain The context of knowledge + Branch details .

image

image

Bytes to beat , And Tencent , Ali , Huawei , Xiaomi and other companies to sort out the interview questions

I hope you can share this set of advanced architecture information , And big factory face to face , Be able to combine with your own shortcomings 、 Focus on learning 、 System learning 、 As soon as possible Android Senior architect . Realize personal ideals and create more value .

All the information in this article can be directly click on GitHub Direct to free download .
Live up to our expectations of youth , Live up to the spur of the times .

Sorting is not easy to , Feel helpful friends can help, share and support Xiaobian ~

Your support , My motivation ; I wish you a bright future ,offer constantly .

Remember Sanlian !!!!

版权声明
本文为[I'm sorry.]所创,转载请带上原文链接,感谢