Android networking interview questions

Retrofit and OkHttp, serialization, interceptors, token refresh, retries, caching and image loading.

4 quick facts

– interview-ready · 8 questions in this topic

– of 8 tried

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

Questions

  1. Retrofit with coroutinesPick the fix
  2. OkHttp interceptorsPick the fix
  3. Refreshing an expired token onceSpot the bug
  4. kotlinx.serialization vs GsonPredict
  5. Retries with exponential backoffPick the fix
  6. HTTP caching with OkHttpPick the fix
  7. Image loadingPredict
  8. Handling offline and flaky networksPick the fix

Practise this topic

Flashcards · 12

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

Quick quiz · 8 questions

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

Mock interview · 1 set

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