Member-only story

Common Coroutine Interview Questions 📝

Android Dev Nexus
5 min readOct 10, 2024

🌟Members can scroll down to enjoy! Non-members, click here for the full access to our blog.🌟

Hello you genius devs! 👩🏻‍💻

Welcome to yet another exciting blog of our ongoing Android Interview Prep series! 🚀 Our goal is to boost your confidence and arm you with the important questions to help you ace your Android interviews. Today, let’s dive into common coroutine-related interview questions.

1. What are Coroutines and Why Use Them?

This is a foundational question. You can answer it like this:

“Coroutines are lightweight threads used for asynchronous programming in Kotlin. They are used to write non-blocking code, which improves performance and responsiveness, especially in Android apps. Coroutines help eliminate callback hell and make code easier to read and maintain.”

💡 Pro tip: Mention that coroutines are a key feature in Android development, making network requests and database operations smooth.

2. Explain launch vs async in Kotlin Coroutines.

Both launch and async are used to start coroutines, but they differ in how they return results.

  • launch: Returns a Job and is used when you don’t need to return a result.
launch { performTask() }
  • async: Returns a Deferred and is used when you want to return a result. You can await the result with await().
val result = async {  fetchData() }.await(

💡 Pro tip: In interviews, explain when you’d use each. Use launch for fire-and-forget operations and async when you need a result.

3. What is suspend and how does it work?

This is one of the core concepts in coroutines.

“suspend is a keyword used to mark a function as suspendable, meaning it can be paused and resumed later. These functions run within coroutines and allow the thread to perform other tasks while waiting for a result

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Android Dev Nexus
Android Dev Nexus

Written by Android Dev Nexus

Your friendly neighborhood developers working at PayPal, turning Android fundamentals into concepts you’ll actually understand.

Responses (3)

Write a response

A worthy quick revision ✌️

I really hope the coroutine spirits stay with me 👏🏻👏🏻

Ah, I have my interview next week. Thank you for the blog 😭😭