This set of 2021-byte Android high-frequency interview questions is a summary, please keep it!

Spring is always the best time to find a job. If you are preparing for an interview with a big factory, then this Byte Interview Question that has been blasted for a few weeks will definitely help you!

Byte's Android has always been a hot choice. Many people don't know much about the rank system and technical requirements of ByteDance technical posts. They have no idea when they want to go to an interview. Let's take a brief look.

In addition, there is a share at the end of the article: The latest Android interview questions (including answers) compiled by the byte interviewer are freshly released! I hope everyone understands and masters these knowledge points and strives to pass every round of interviews!

There are a total of 10 levels in the research and development sequence of byte beating.

The monthly salary base varies greatly among different sequences, and the technical base is generally higher. For example, 2-1 monthly salary will be 20k+, 2-2 package

It will be around 60w-100w (including options, it will probably account for about 30%). The salary of the T2-2 level is about 40k, 500 stocks/year, and the cash salary of ByteDance is 25%-40% higher than that of BAT.

Byte Android engineer job requirements


Performance appraisal and promotion

ByteDance’s internal performance appraisal has a total of eight levels, from low to high as F, I, M-, M, M+, E, E+, O, and will be compulsorily distributed, corresponding to the year-end bonus and monthly salary percentage increase. M has the opportunity to raise salary. The promotion interview also mainly depends on the performance appraisal.

The assessment is conducted twice a year, usually in March and September. The assessment method draws on Google’s OKR+360 model: the headline is bimonthly OKR, you can see everyone’s OKR on lark, know what everyone is doing, what are your goals for aligning, and what people who support aligning you are doing . 360 Evaluation: Everyone can evaluate others and will be evaluated by others, whether it is a leader or an ordinary employee.

welfare

Free three meals and afternoon tea.

If you live near the company and there is a housing supplement, Beijing 1500 Hangzhou 800.

Interviewer's summary: byte Android interview question set

Java part

  • Operating system related
  • JDK&JVM&JRE
  • Process-oriented & object-oriented
  • Eight basic data types & reference types
  • Array
  • Java exception
  • NIO / BIO / AIO
  • Collection (container)
  • Thread
  • Generic
  • reflection
  • annotation
  • Socket programming
  • Design Patterns
  • JVM related

Android part

Activity

  • Activity life cycle under typical circumstances?
  • Activity life cycle & how to save and restore data under abnormal conditions?
  • After jumping from Activity A to Activity B, and then clicking back to build, what is their life cycle calling process
    ?
  • How to count the working hours of Activity?
  • Tell me about the startup mode & usage scenarios of Activity.
  • How to close all activities of the application at any position & how to close the specified activity at any position?
  • What is the Activity task stack? Is it useful in the project?
  • How to communicate between Activities & between Activity and Fragment & between Activity and Service
    ?
  • Comparison of the life cycle of Activity and Fragment?
  • Know which flags are commonly used in Activity?
  • What is the difference between using Intent to transfer data and Bundle to transfer data? Why not use HashMap?
  • In the implicit start, Intent can set multiple actions, multiple categories & by the way, their matching rules
    ?
  • Is there any restriction on Activity's use of Intent to pass data? If you pass a complex object, such as a complex
    control object, what should be done?
  • Can the setContentView method be called multiple times in Activity? Tell me
    what happens when setContentView is called for the second time at a different time ?
  • How to set the entry and exit animation for Activity?
  • Is there any way to start an activity that has not been registered in AndroidManifest.xml?

BroadcastReceiver

  • What is broadcasting? (School Recruitment & Internship)
  • What are the registration methods for broadcasting?
  • Broadcast classification & characteristics & usage scenarios?
  • Talk about the principles & differences & usage scenarios of system broadcasting and local broadcasting.
  • There are two applications registered for the same broadcast, one is static and the other is dynamic, even with the same priority. Then when the broadcast is sent from the system, which application receives the broadcast first?

ContentProvider

  • What is a content provider? (School Recruitment & Internship)
  • Talk about how to create your own application content provider & usage scenarios. (School Recruitment & Internship)
  • Talk about the principle of ContentProvider.
  • What is the relationship between ContentProvider, ContentResolver, ContentObserver?
  • Talk about the permission management of ContentProvider.

Service

  • What is Service? (School Recruitment & Internship)
  • Talk about the life cycle of Service. (School Recruitment & Internship)
  • What is the difference between Service and Thread? (School Recruitment & Internship)
  • The implicit startup problem and its solutions above Android 5.0.
  • Tell me about the service keep-alive plan
  • What is IntentService & Principle & Usage Scenario & The difference between IntentService and Service.
  • What should I do to create an independent process Service?
  • How to communicate between Service and Activity?
  • Tell me about the system Service you know.
  • Talk about your understanding of ActivityManagerService.
  • What is the difference between creating a Thread in Activtiy and creating a Thread in a Service?

Handler

  • Must the child thread not update the UI? (School Recruitment & Internship)
  • Tell me about the principle of Handler (school recruitment & internship)
  • How did you solve the memory leak caused by Handler?
  • How to use Handler to let the child thread communicate with the child thread?
  • Can you tell me about the design principle of Handler?
  • What is HandlerThread & principle & usage scenarios?
  • What is IdleHandler?
  • Can a thread create multiple Handler, Handler and Looper correspondences?
  • Why does the Android system not recommend that child threads access the UI?
  • Why does the infinite loop of Looper not cause the application to freeze?
  • Can a Handler be created directly in the child thread?
  • What are the differences in the way the Message object is created?
  • Is there any connection between ANR and Handler?
  • What is the difference between the Looper of the child thread and the Looper of the main thread?
  • Talk about why Handler cannot communicate across processes?
  • How to realize the message delay of Handler?
  • What is a message barrier?
  • Suppose that the main thread has new Handler A, Handler B and Handler C, and now there is a sub-thread, and a message is sent through Handler C in the sub-thread. Can Handler A and Handler B receive it? why?

AsyncTask

  • What is AsyncTask? What problems can be solved (school recruitment & internship)
  • Tell me about the three generic parameter functions of AsyncTask & some of its method functions.
  • Tell me about the principle of AsyncTask.
  • Do you think AsyncTask has its shortcomings?

Fragment

  • What is the difference between Fragment under the v4 package and Fragment under the app package in Android?
  • Fragment's life cycle & please talk about it in conjunction with the life cycle of Activity.
  • Talk about how Fragment is lazy loading
  • Will there be memory leaks when combined with ViewPager + Fragment & how to solve it?
  • How to communicate between Fragment and Activity & How to communicate between Fragment?
  • Tell me about Fragment3 switching methods and their differences & usage scenarios.
  • What is the difference between getFragmentManager, getSupportFragmentManager, and getChildFragmentManager?
  • What is the difference between FragmentPagerAdapter and FragmentStatePagerAdapter?
  • How does Fragment achieve the push and pop effect similar to the Activity stack?

Serialization

  • What is serialization & what can it be used for? (School Recruitment & Internship)
  • How many serialization methods are there in Android? Talk about the difference between them. (School Recruitment & Internship)
  • What should I do if some fields in the class that I want to serialize are not serialized?

IPC

  • Tell me about your understanding of Android multi-process development?
  • What are the ways of inter-process communication in Android?
  • What is AIDL? How to create an AIDL.

File storage

  • Talk about the way of data persistence in Android & usage scenarios. (School Recruitment & Internship)
  • Have you been in contact with MMKV? Talk about the difference between SharedPreference and it.
  • Which third-party database frameworks have been used? Have you ever packaged a SQLite library yourself?
  • Is SQLite thread safe & is SharedPreference thread safe? (School Recruitment & Internship)
  • Please tell me briefly what is the third-level cache? (School Recruitment & Internship)
  • The difference between apply and commit of SharedPreference.
  • Talk about your understanding of SQLite transactions.
  • Investigation of all kinds of strange SQL statements. (School Recruitment & Internship)

ListView & RecyclerView

  • What is ListView? how to use?
  • What is RecyclerView? how to use? How to return different items.
  • What is the difference between ListView and RecycyclerView?
  • Separately talk about your optimization experience for ListView & RecyclerView.
  • Talk about the recycling and reuse mechanism of RecyclerView
  • Tell me how you add more mechanisms to ListView & RecyclerView with pull-to-refresh & pull-to-load.
  • Talk about how you do partial refresh of ListView & RecycleView?
  • Talk about how to carry out paging loading?
  • What problems usually occur when a ListView is nested under a ScrollView?
  • When a ListView or a RecyclerView displays news data, the picture is misaligned. What are the possible reasons & how to solve it?

Picture programming

  • Do you know Bitmap? How does it exist in memory?
  • Do you know the reasons why Bitmap causes OOM? How to optimize?
  • Tell me about image compression.
  • The principle of LruCache & DiskLruCache.
  • Tell me about some third-party image loading libraries that you usually use. It's best to talk to me about its principles.
  • If you were asked to design an image loading library, how would you design it?
  • There is a very big picture, how do you load this big picture?
  • Do you know some libraries for processing pictures in Android (OpenCv & GPUImage …)?
  • How to calculate the size of a picture in the memory?

WebView

  • Will WebView cause memory leaks? what is the reason? What are the solutions?
  • Do you know Hybrid development? Tell me about your relevant experience.
  • Talk about the role & usage of the three classes of WebSettings & WebViewClient & WebChromeClient.
  • Tell me about the Hybrid framework you know.
  • How to improve the loading speed of native WebView?
  • Talk about your understanding of the working mechanism of webView, have you optimized it in your project? What are the starting points?

ViewPager

  • What is ViewPager? Talk about its adapters. (School Recruitment & Internship)
  • Do you know ViewPager2? What are the differences with ViewPager 1?
  • What is the cause of the memory leak in the combination of ViewPager + Fragment? How to solve?

View event distribution mechanism

  • What is the event distribution mechanism? What kind of problem is it mainly used to solve?
  • Tell me about the process of event distribution & some cases of conflict resolution in your project.
  • Separately talk about the role and relationship of the three methods of event distribution.
  • What happens if I force the dispatchTouchEvent method to return true or false in a TextView with a click event set?
  • Tell me about your knowledge of MotionEvent? Under what circumstances is the Cancel event triggered?
  • Can you tell me about the coordinate system in Android?

View drawing mechanism

  • Talk about the View drawing process. (School Recruitment & Internship)
  • Talk about the Activity View tree structure.
  • What are the ways to customize the View? Tell me about the case in your previous project.
  • What is the difference between invalidate and postvalidate?
  • Tell me about some of the methods that you often rewrite when customizing View?
  • Talk about how to customize attributes in custom View?
  • What is the difference and connection between requestLayout(), onLayout(), onDraw(), and drawChild()?
  • How to calculate the nesting level of a View?
  • How does custom View consider model adaptation?

layout

  • Talk about the layout & features in Android.
  • Do you know the process of layout file to control object?
  • There is such a layout requirement, a text control is placed in the middle of the half of the screen, how do you make the layout
    ?
  • LinearLayout, FrameLayout, RelativeLayout performance comparison, why?

Binder

  • What is Binder? What is it used for?
  • Tell me specifically about the Binder mechanism.

Due to space reasons, if you need the PDF of the above full version of the interview questions, you can like + comment to support me, and then [click here] to read and download for free.

Guess you like

Origin blog.csdn.net/weixin_52217015/article/details/114948732