Back to Blog

Kotlin Developer Interview Questions 2026

HiringIT HiringSoftware Development

Last updated: November 27, 2026

By Devin Hornick, Co-Founder, KORE1

The best Kotlin developer interview questions in 2026 put a short snippet that compiles on the table and ask what breaks at runtime, because the costly bugs get past the compiler. Syntax trivia can have ten minutes. Not the hour.

The company in this story is invented. The bug isn’t, and you can reproduce it in two seconds. Picture an equipment rental firm in Richmond, Virginia, with a Kotlin service that pushes the day’s rental agreements to billing every night and gives itself a fixed time budget to finish. One morning the log holds several hundred warnings that say the push failed. The on-call engineer opens a ticket with the billing vendor. The vendor finds nothing wrong. Two days go by before someone notices that the warnings all start at the same second, which is the second the time budget ran out, and that the job had kept walking down its list long after it was told to stop.

The person who wrote that loop interviewed well. Very well. They explained structured concurrency from memory and drew the parent and child jobs on a whiteboard.

Nobody showed them the loop.

Money first. Our firm gets paid if you hire a Kotlin engineer we send you through our Kotlin developer staffing practice. You can take every page below and never call us. I also don’t write Kotlin for a living, which is why each runnable behavior described here was compiled and run on Kotlin 2.4.21 with kotlinx.coroutines 1.10.2 before it went on the page. Framework behavior, meaning the database mapper and the web validator, comes from the linked documentation.

Three kraft boxes with the middle one open and empty, a picture of the unexpected null a Kotlin interview should look for

Server, Android, or Shared Code? Decide Before the First Question

A Kotlin developer builds software in Kotlin, a JetBrains language that runs on the Java Virtual Machine, serves as Android’s primary language, and can share code with iOS through Kotlin Multiplatform. The interview should follow the target, because one title covers very different work.

A backend engineer who has spent four years in Spring Boot and an Android engineer who has spent four years in Jetpack Compose will both write “Senior Kotlin Developer” at the top of a resume, and each of them can be a poor fit for the other’s job. Settle the lane first. Our guide to hiring Kotlin developers for Android covers how to scope and price the search. For the numbers and the wording, see our Kotlin developer salary guide and the Kotlin posting template with a block for each lane. This page covers the technical round and nothing else.

The seatPrint theseAdd from elsewhere
Server-side Kotlin on Spring Boot or KtorAll five exercises, plus the upgrade questionsA system design round from our backend developer interview set
AndroidExercises one through four, then the state flow pageCompose and release rounds from the Android developer interview questions
A Java team moving to KotlinOne, two, five, and the annotation questionJVM depth from the Java developer interview questions

Kotlin Developer Interview Questions for the Warm-Up

These are the ones every candidate has rehearsed. Keep them anyway, briefly. The useful part is the gap between the two right-hand columns, and a panel that has never shipped Kotlin can hear it.

AskHas shipped itHas read about it
Is a val list immutable?No. The reference is fixed, and a read-only type is a view that something else may still changeYes, because val means constant
When is !! acceptable?Rarely, with a reason they can state, and they’d rather model the value so null can’t arriveWhen you know it isn’t null
Does suspend move work off the main thread?Not by itself. A blocking call inside a suspend function still blocks, so it needs a dispatcher such as Dispatchers.IOYes, suspend means asynchronous
What does data class generate?equals, hashCode, toString, copy, and component functions, all from the primary constructor onlyGetters and setters
== against ===?Equal contents against the very same object, and they mention what that does to a state flowOne is stricter
Cold flow or hot flow?A cold flow runs per collector. A state flow exists on its own, holds one value, and never completesHot is faster

Ten minutes. Then paper.

The List That Swore It Had No Nulls

The first class is Java, written years ago, and nobody has annotated it. The second part is Kotlin.

// Roster.java
public List<String> emails() {
    return Arrays.asList("a@x.com", null, "c@x.com");
}

// Notify.kt
val emails: List<String> = Roster().emails()
val recipients = emails.toList()
for (address in recipients) send(address.lowercase())

Ask which line fails. Most people point at the first Kotlin line, since a list with a null in it is being assigned to a list that can’t hold one. It doesn’t fail there. The assignment passes, the copy passes, the first email goes out, and the NullPointerException arrives on the second pass through the loop, a long way from the Java method that caused it and after part of the work is already done.

Kotlin calls what unannotated Java hands back a platform type. It has no promise either way, so the compiler lets you declare whatever you like. A strong answer says that out loud, then fixes it at the boundary. Declare List<String?>, filter on purpose, and count what got dropped. Better, annotate the Java with JSpecify so Kotlin sees real nullable types and reports mismatches as errors.

A weak answer adds !! somewhere. Watch for that one.

Copper and steel pipes joined by a dripping brass coupling, a picture of nulls leaking across the boundary between Java and Kotlin

The Disputed Payment That Got Cancelled

sealed interface Payment {
    object Settled : Payment
    object Declined : Payment
    object Disputed : Payment   // added last sprint
}

fun nextStep(p: Payment): String = when (p) {
    Payment.Settled -> "ship"
    else -> "cancel"
}

What happens to a disputed order? It gets cancelled. Silently.

The whole reason to use a sealed interface is that the compiler knows every subtype and can refuse to build a when that skips one, and the else branch hands that protection back in exchange for saving one line. So we swapped the else for a Declined branch, left Disputed out on purpose, and compiled again. Dead stop. The message was “‘when’ expression must be exhaustive. Add the ‘Disputed’ branch or an ‘else’ branch.”

I’d pay for that error.

Good answer? Kill the else, list all three. The strongest ones add that the compiler’s suggestion to put an else back is the one to ignore, and then they ask where else in your codebase a new payment state would slide through. Hire the person who asks that.

The Nightly Sync That Outlived Its Timeout

This is the Richmond loop, shrunk so it runs in two seconds.

suspend fun syncAll(agreements: List<Agreement>) {
    for (agreement in agreements) {
        runCatching { push(agreement) }   // suspends about 100 ms
            .onFailure { log.warn("push failed: ${agreement.id}", it) }
    }
}

// caller, with 500 agreements
withTimeout(2_000) { syncAll(agreements) }

Ask how many pushes succeed, how many warnings get logged, and when the caller hears about the timeout.

On our run, 18 pushes went through and 482 warnings were logged. The loop attempted all 500. Only then did the timeout exception reach the caller.

Here’s why. runCatching catches every Throwable, and that includes the CancellationException a coroutine uses to say it has been told to stop. Each push after the deadline threw as soon as it tried to suspend, got caught, got logged as a failure, and the loop moved on to the next one. The Kotlin documentation on cancellation is blunt about it. If you catch that exception, rethrow it.

Good fixes vary, and a candidate might catch only the exceptions the job can actually do something about, such as an IOException from the billing client, so that a cancellation passes straight through to the caller. Or keep runCatching and put currentCoroutineContext().ensureActive() first in the failure branch. We tried that one. Same 18 pushes, zero false warnings, 19 attempts instead of 500. The follow-up worth asking is what changes if push uses a blocking Java client, and the answer is worse news, because cancellation is cooperative and a blocking call that never suspends keeps sending after the deadline.

Orange rope splitting into three strands with one cut, a picture of Kotlin coroutine cancellation and supervision

The Nice-to-Have That Took Down the Page

An account page needs orders and a credit limit. Product suggestions are a bonus.

suspend fun dashboard(): Dashboard = coroutineScope {
    val orders = async { orderClient.recent() }
    val credit = async { creditClient.limit() }
    val tips = async { recommender.suggest() }   // optional

    Dashboard(
        orders.await(),
        credit.await(),
        runCatching { tips.await() }.getOrDefault(emptyList())
    )
}

The recommender is down. What does the user see?

An error page. All of it, orders included, because a side feature the user never asked for couldn’t reach its own server. Whoever wrote this clearly meant to survive that. The runCatching around await even looks right on a code review at 5:40 on a Friday. Too late, though. An async inside coroutineScope is a child of that scope, and a child that throws anything other than a cancellation cancels its parent, which takes the order and credit calls down with it. The rule is in the coroutine exception handling guide.

Two answers pass. Catch inside the optional async block, so the exception never gets out of it. Or switch to supervisorScope, where one child’s failure leaves its siblings alone. We ran the second version with the same broken recommender and got orders, the credit limit, and an empty suggestion list. Ask which they’d choose and why. Either choice is fine. A reason is required.

The Data Class Wearing an @Entity

@Entity
data class Invoice(
    @Id @GeneratedValue var id: Long? = null,
    var number: String,
    @ManyToOne(fetch = FetchType.LAZY) var customer: Customer
)

Tidy. I count two problems on any build and a third on some.

The generated equals and hashCode use every constructor property, including an id that is null until the row is saved. Put a new invoice in a HashSet, save it, and ask the set whether it holds that invoice. We ran the same shape without a database, assigning the id by hand, and the set said no.

Now the customer field. Generated members read it, so a log statement that prints an invoice can trigger a query nobody wrote, or fail outright when the session is closed.

The third depends on a version number. Kotlin classes are final by default, and Hibernate’s user guide warns that a final entity class stops it from building the proxy that lazy loading relies on. Before Kotlin 2.3.20, the kotlin("plugin.jpa") plugin added no-argument constructors and left classes final. Since that release it also opens them. A candidate who says “you need to configure all-open yourself” was right a year ago, and the good ones know it changed or ask which version you’re on.

Android Seats Get a Different Fifth Page

private val _items = MutableStateFlow(mutableListOf<Item>())

fun add(item: Item) {
    _items.value.add(item)
    _items.value = _items.value
}

You tap add. Nothing moves. Why not?

A state flow drops any new value that equals the old one, and a list always equals itself. In our run the collector saw a size of zero and nothing after it, while the list behind it held one item. The fix is an immutable list and _items.update { it + item }. Anyone who has chased this one through a debugger answers in under a minute, usually with a wince and a story about the afternoon they lost to it.

Three Questions About Their Last Upgrade

Version questions cost almost nothing to ask and are hard to fake, because the person either lived through the change on a codebase they were responsible for or learned about it from you just now. Cheap. Start here.

data class SignupRequest(
    @Email val email: String,
    @Size(min = 12) val password: String
)

@PostMapping("/signup")
fun signup(@Valid @RequestBody body: SignupRequest) = service.create(body)

Does “not-an-email” get rejected? It depends on the compiler. Before Kotlin 2.4, an annotation like this landed on the constructor parameter only, and request body validation checks fields and getters, so the bad value could walk straight in. From 2.4.0 the default targets include the field too. We checked with a stand-in annotation. Compiled normally on 2.4.21 it appeared on both, and with the language version set back to 2.3 the field had nothing on it. The answer you want names the version, offers @field:Email or the -Xannotation-default-target=param-property flag for older builds, and adds a test that posts a bad address.

Second. Why coroutines at all, on a JVM that has had virtual threads since Java 21? The old catch was pinning, where a virtual thread blocked inside a synchronized block held its carrier thread hostage, and JEP 491 in JDK 24 removed nearly all of those cases, so blocking calls made inside synchronized code, common in older Java libraries, scale far better on 24 or later than they did on 21. Coroutines still give you cancellation that travels down a hierarchy, Flow, and code that runs on iOS too. Anyone who says one of them has made the other pointless hasn’t had to choose yet.

Third, what did their last Kotlin upgrade break? A deprecation, a Gradle plugin that refused to resolve, an annotation that moved. Any of those works. The release schedule lists a language release every six months, with 2.5.0 planned for December 2026, so someone who has maintained a Kotlin codebase for two years has been through a few. A blank look tells you plenty.

How to Grade It When the Panel Doesn’t Write Kotlin

Give each exercise three yes-or-no marks. Did they find the failure by reading, without running anything? Did they say where in a real system it would show up, such as a log, a support ticket, or a wrong total on a report? And did their fix make the compiler or a test catch it next time?

Fifteen marks, five pages. Total them after the candidate has left the building, never with them watching your pen. I’d move forward anyone who finds three of the five failures and can explain the consequence of each in plain English, because the other two are teachable in a week and the habit of asking what happens next mostly isn’t. And the one who spots all five but can’t tell you who in your company would’ve noticed? Second look. Maybe a third.

Put one Kotlin engineer in the room. Don’t have one? Borrow a friend’s for an hour and buy them lunch.

Where Hiring Managers Push Back

Can a strong Java developer pass this round?

A strong Java developer with a few months of Kotlin usually has a fair shot at exercises one and five, and often struggles with the two coroutine pages. Decide whether that gap is acceptable. If the work is heavy on concurrency, it isn’t.

Should candidates be allowed to use an AI assistant?

Allow it for any follow-up coding, and keep the first read on paper. Ask Claude or Copilot why the sync logs 482 failures and you may well get a decent answer. Nobody asks it, though, about a loop that already passed review.

How long should the technical round take?

Sixty minutes covers it, with ten for the warm-up and about nine for each of five exercises. Running long? Drop a page, not the talking. Four exercises argued through beat six sprinted.

What does a Kotlin developer cost in 2026?

Our Android-focused hiring guide puts Kotlin developer base pay at $105,000 to $135,000 mid-level and $145,000 to $200,000 senior. Published sources measure different things, so check more than one.

The Bureau of Labor Statistics reports a median of $135,980 for all software developers as of May 2025, with no Kotlin breakout. ZipRecruiter’s Kotlin developer page showed a $127,151 average when we checked on November 27, 2026. Our salary benchmark assistant can price a specific metro.

Do we need Kotlin Multiplatform questions?

Only if shared code exists today or has a funded date. Putting KMP on a plain Android or Spring Boot req thins out the applicants and tests nothing they’ll do on Monday. Got a real shared module? Then ask what stayed in the iOS and Android source sets, what moved to commonMain, and which of those moves they’d take back.

I’m the one being interviewed. What should I practice?

Practice by running these snippets and predicting the output first, then changing one line at a time until you can explain every result. Interviewers listen for what happens to the user or the data. Say that part out loud.

Search Your Repo for runCatching Tonight

Before you write a single interview question, open your own codebase and search for runCatching wrapped around a suspending call. Then search for else -> under a when on a sealed type, and for data class sitting under @Entity. Print what you find. It beats everything above, because the candidate is reading the very code they’d inherit on day one, with your naming, your shortcuts, and that one comment from 2022. Mine are stand-ins.

If you’d like help building the round or filling the seat, send our recruiters your stack and the snippet that worries you. KORE1’s 12-month retention on placements is 92 percent, and the average IT search takes 17 days. A dated job such as a Java-to-Kotlin migration often suits contract staffing. Someone who will own the service for years is usually a direct hire.