Kotlin Collections and Operators
Kotlin Collections, functional operators (map, filter, reduce), Sequences, higher-order functions, operator overloading
20 면접 질문·
Mid-Level
1What is the difference between List and MutableList in Kotlin?
1
What is the difference between List and MutableList in Kotlin?
답변
List is a read-only interface that doesn't allow modifying the collection after creation. MutableList extends List and adds modification methods like add(), remove(), clear(). List guarantees structural immutability.
2How do you create an immutable list in Kotlin?
2
How do you create an immutable list in Kotlin?
답변
Use listOf() to create an immutable list. This function returns a read-only List<T>. For a mutable list, use mutableListOf() or arrayListOf().
3What is the map() operator used for on a collection?
3
What is the map() operator used for on a collection?
답변
map() transforms each element of the collection by applying a function, and returns a new list with the transformed elements. For example: listOf(1,2,3).map { it * 2 } returns [2,4,6].
4
What is the filter() operator used for?
5
What is the difference between map() and flatMap()?
+17 면접 질문
기타 Android 면접 주제
Android Fundamentals
Junior
24개 질문Android UI and Resources
Junior
30개 질문Android Lifecycle
Junior
30개 질문Android Navigation
Junior
26개 질문Android Data Management
Junior
29개 질문Android Networking
Junior
29개 질문Android Testing
Junior
28개 질문Android Gradle
Junior
26개 질문Kotlin Language Essentials for Android
Junior
24개 질문Room Database
Mid-Level
25개 질문Background Work
Mid-Level
18개 질문Jetpack Compose
Mid-Level
28개 질문Permissions and Device Features
Mid-Level
21개 질문Firebase for Android
Mid-Level
23개 질문Android MVVM Architecture
Mid-Level
18개 질문Advanced Android Networking
Mid-Level
13개 질문Kotlin Coroutines and Flow
Mid-Level
20개 질문Android Dependency Injection
Mid-Level
15개 질문Android MVI Architecture
Mid-Level
17개 질문Android Clean Architecture
Senior
21개 질문Android Compose Advanced
Senior
17개 질문Android Performance and Monitoring
Senior
13개 질문Android Security and Privacy
Senior
18개 질문Android CI/CD and Release
Senior
15개 질문Android UX and Form Factors
Senior
18개 질문Android Testing Advanced
Senior
18개 질문