Kotlin Collections and Operators
Kotlin Collections, functional operators (map, filter, reduce), Sequences, higher-order functions, operator overloading
1What is the difference between List and MutableList in Kotlin?
What is the difference between List and MutableList in Kotlin?
Cevap
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?
How do you create an immutable list in Kotlin?
Cevap
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?
What is the map() operator used for on a collection?
Cevap
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].
What is the filter() operator used for?
What is the difference between map() and flatMap()?
+17 mülakat soruları
Diğer Android mülakat konuları
Android Fundamentals
Android UI and Resources
Android Lifecycle
Android Navigation
Android Data Management
Android Networking
Android Testing
Android Gradle
Kotlin Language Essentials for Android
Room Database
Background Work
Jetpack Compose
Permissions and Device Features
Firebase for Android
Android MVVM Architecture
Advanced Android Networking
Kotlin Coroutines and Flow
Android Dependency Injection
Android MVI Architecture
Android Clean Architecture
Android Compose Advanced
Android Performance and Monitoring
Android Security and Privacy
Android CI/CD and Release
Android UX and Form Factors
Android Testing Advanced
Bir sonraki mülakatın için Android'de uzmanlaş
Tüm sorulara, flashcards'a, teknik testlere, code review alıştırmalarına ve mülakat simülatörlerine eriş.
Ücretsiz başla