Questions
Kotlin questions
Choose a question page, learn the concept, then test your understanding with a quiz.
Android AlarmManager Example: Scheduling Tasks with AlarmManager
Learn how to use Android AlarmManager to schedule tasks, set alarms, and handle broadcasts with a simple beginner example.
Can You Extend a Data Class in Kotlin? Inheritance, Limits, and Better Alternatives
Learn why Kotlin data classes cannot be extended, what causes the component function clash, and which alternatives to use instead.
Difference Between List and Array in Kotlin
Learn the difference between List and Array in Kotlin, including mutability, size, APIs, performance, and when to use each one.
Fix KaptExecution Error in Android Kotlin: Data Binding and Build Generation
Learn why KaptExecution fails in Android Kotlin builds, especially with data binding and generated classes, and how to fix it step by step.
Fixing "Default Interface Methods" Error in Android: Java 8, D8, and LifecycleObserver
Learn why Android shows the default interface methods error, how Java 8 affects minSdk, and how to fix it with D8 and Android lifecycle libraries.
How reified Works in Kotlin Generics
Learn how Kotlin's reified keyword works, why inline is required, and when reified generics differ from normal generic type parameters.
How to Check Whether a lateinit Variable Is Initialized in Kotlin
Learn how to check if a lateinit property has been initialized in Kotlin, avoid crashes, and use safe patterns in real code.
How to Convert Kotlin to Java Source Files
Learn what is and is not possible when converting Kotlin source files to Java, plus practical options, tools, and beginner-friendly examples.
How to Debug “Unfortunately, MyApp Has Stopped” in Android
Learn how to diagnose and fix the Android “Unfortunately, app has stopped” crash using Logcat, stack traces, and debugging steps.
How to Fix Deprecated Gradle Features Used in This Build for JUnit 5 and Android Gradle
Learn why deprecated Gradle features appear with JUnit 5 and Android builds, and how to diagnose and fix them safely.
How to Fix Duplicate Kotlin Stdlib Class Errors in Android Gradle
Learn why duplicate Kotlin stdlib class errors happen in Android and how to fix version conflicts in Gradle dependencies safely.
How to Fix Incompatible Kotlin Metadata Version in Android When Updating Stripe
Learn why Kotlin metadata version errors happen in Android, how to fix them after updating Stripe, and how to collect email and cardholder name.
How to Fix IntelliJ Kotlin JVM Target Mismatch: 1.8 vs 1.6
Learn why IntelliJ shows a Kotlin JVM target mismatch error and how to align bytecode targets like 1.8 and 1.6 correctly.
How to Fix Jackson "No Creators, like default construct, exist" Error in Java Retrofit Deserialization
Learn why Jackson throws the "No Creators" deserialization error in Java Retrofit apps and how to fix it with constructors and annotations.
How to Get the Current Index in a for-each Loop in Kotlin
Learn how to get the current index in a Kotlin for-each loop using withIndex(), forEachIndexed(), and simple examples.
How to Initialize Arrays in Kotlin with Values
Learn how array initialization works in Kotlin, including arrayOf, primitive arrays, syntax examples, and common mistakes for beginners.
How to Initialize an Empty MutableList in Kotlin
Learn how to create an empty MutableList in Kotlin, when to use mutableListOf(), and common mistakes with List vs MutableList.
How to Launch an Activity from Another App in Android Using Intents
Learn how to open an installed app or specific Activity from another Android app using Intents, PackageManager, and safe checks.
How to Place the Cursor at the End of an EditText in Android Java
Learn how to keep the cursor at the end of an EditText in Android Java after changing text programmatically.
How to Vibrate an Android Device in Java: Vibrator and VibrationEffect
Learn how to make an Android device vibrate in Java using Vibrator and VibrationEffect, including patterns, permissions, and common pitfalls.
Page 1 of 2 - 32 questions