android-interview-questions
android-interview-questions copied to clipboard
Your Cheat Sheet For Android Interview - Android Interview Questions and Answers
setRetainInstance(boolean) is no longer supported, the recommended approach is to use ViewModel to retain Fragment's data.
I am going to answer all the questions to reduce the preparation time for the Android interview.
For the question **Can you list 8 primitive types in java?** in [Objects and Primitives](https://github.com/MindorksOpenSource/android-interview-questions#objects-and-primitives) section, `String` is listed as an extra Primitive data type. According to the Java documentation...
Enumeration don't have remove() method Iterator have hasNext(), next(), remove() method. Enumeration have hasMoreElement(), nextElement() method only
Add section What is ViewModelProvider.Factory? with a linked information
In fail-fast vs fail-safe comparison, fail safe is written in place of fail-fast.
It fixes the issue of the similar link mentioning twice in the same line in 'What is the NDK and why is it useful? - Learn from here and here...