/android-interview

A curated collection of Android interview questions and answers

MIT LicenseMIT

Android Interview Questions

A curated collection of Android interview questions and answers

Table of Contents

  1. Core Java or Kotlin
  2. Core Android
  3. Design
  4. Data Storage
  5. Architecture
  6. Tools and Libraries
  7. Test Driven Development
  8. Others

Core Java or Kotlin Questions

Core Android Questions

Design Questions

Data Storage Questions

Architecture Questions

Tools and Libraries Questions

Other Questions

What is overloading and overriding in java?

When we have more than one method with the same name in a single class but the arguments are different, then it is called as method overloading.

Overriding concept comes in picture with inheritance when we have two methods with same signature, one in parent class and another in child class. We can use @Override annotation in the child class overridden method to make sure if parent class method is changed, so as child class.

References

[↑] Back to top

What is difference between Serializable and Parcelable ? Which is best approach in Android ?

Serializable is a standard Java interface. You simply mark a class Serializable by implementing the interface, and Java will automatically serialize it in certain situations.

Parcelable is an Android specific interface where you implement the serialization yourself. It was created to be far more efficient than Serializable, and to get around some problems with the default Java serialization scheme.

References

[↑] Back to top

Translations

Contributing

You should make sure your question/answer is appropriate and unique for this repository and if you don't know how to contribute, you should read CONTRIBUTING guide before pull request.

License

All projects and packages in this repository are MIT licensed.