Android runtime, build and Gradle interview questions

ART and DEX, R8, KSP, Gradle builds and variants, garbage collection, threads, and light Java and OOP.

5 quick facts

– interview-ready · 10 questions in this topic

– of 10 tried

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

Questions

  1. ART: interpreter, JIT and AOTOrder the steps
  2. R8, shrinking and keep rulesPick the fix
  3. kapt vs KSPPick the fix
  4. Speeding up Gradle buildsPick the fix
  5. Build types, flavors and variantsPredict
  6. Version catalogs and convention pluginsPick the fix
  7. Garbage collection on AndroidSpot the bug
  8. Threads, @Volatile and synchronizedPick the fix
  9. OOP principles in KotlinPick the fix
  10. Interface vs abstract classPredict

Practise this topic

Flashcards · 15

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

Quick quiz · 10 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