Android performance interview questions

The main thread, ANRs, jank, memory leaks, startup, Baseline Profiles, profiling and app size.

5 quick facts

– interview-ready · 12 questions in this topic

– of 12 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. Looper, Handler and the main threadPredict
  2. ANRs: causes and fixesPick the fix
  3. Jank and dropped framesOrder the steps
  4. Memory leaksSpot the bug
  5. Cold start timePick the fix
  6. Baseline ProfilesOrder the steps
  7. Smooth long listsPick the fix
  8. StrictModeFill the blank
  1. Profiling toolsPick the fix
  2. Macrobenchmark and MicrobenchmarkPick the fix
  3. Reducing app sizeOrder the steps
  4. Battery-friendly appsPick the fix

Practise this topic

Flashcards · 17

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 12 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 2 sets

Timed, out loud, then tick what you covered. Needs JavaScript.

Fix this PR · 1 review

Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.

Sources: Question outline adapted from Android-Interview-Questions by Mohsen Mirhoseini, licensed under Apache 2.0. We reorganised the questions, rewrote every answer and added new ones. Credits and license