Q241. What are Kotlin coroutines and when should you use them?
Coroutines are Kotlin's solution for asynchronous and concurrent code. They are lightweight, suspendable computations: a `suspend` function can pause without blocking a t...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (2,728 available).
Coroutines are Kotlin's solution for asynchronous and concurrent code. They are lightweight, suspendable computations: a `suspend` function can pause without blocking a t...
`async`/`await` enables asynchronous programming without blocking a thread. Marking a method `async` lets you `await` a `Task` or `Task`, and the compiler rewrites the me...
RAII, Resource Acquisition Is Initialisation, binds a resource's lifetime to an object's lifetime: acquire in the constructor and release in the destructor. Because destr...
The borrow checker enforces the borrowing rules at compile time: you may have either one mutable reference or any number of immutable references, and references must alwa...
A goroutine is a function running concurrently, scheduled by the Go runtime rather than directly by the operating system. - Cost: goroutines start with a small growable s...
Look at the differences: 4, 6, 8, 10, which increase by 2 each time. The next difference is 12, so the next term is 30 + 12 = 42. Alternative view: the terms are n(n+1) f...
Choose a failure that is real but not catastrophic, and focus on learning and corrective action. Situation: "I estimated a feature at two weeks; it took six." Task: "I ow...
Anchor on research, not on your current salary. - Research the market range for the role, level and location (levels.fyi, Glassdoor, industry surveys, peers). - Give a re...
Observability is the ability to understand a system's internal state from its outputs, so you can debug novel problems without shipping new code. - Metrics: cheap numeric...
Queues decouple producers from consumers, absorb traffic spikes, enable retries and fan-out, and improve resilience when a downstream service is slow or down. Delivery se...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.