In production Kotlin 2.0 & Jetpack Compose (Jetpack Compose), what is the primary engineering purpose of 'Declarative UI Thinking & @Composable Functions'?
-
A. Replace brittle XML
findViewByIdinflation with concise, reusable Kotlin UI components. - B. Executing heavy disk I/O and synchronous network requests directly on the main UI rendering thread.
- C. Hardcoding production API secrets and plaintext auth tokens inside bundled client resources.
- D. Disabling lifecycle cancellation and holding strong references to destroyed screen contexts.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'Declarative UI Thinking & @Composable Functions' is used in production Jetpack Compose specifically for: Replace brittle XML findViewById inflation with concise, reusable Kotlin UI components.