i
Synechron
Filter interviews by
View model in Android is a class that stores and manages UI-related data in a lifecycle-conscious way.
View model survives configuration changes and is not destroyed when the UI is destroyed.
It is used to separate the UI controller logic from the UI layout.
View model is typically used with LiveData to update the UI when the data changes.
It helps in organizing and handling data for the UI efficiently.
Data class requires at least one parameter in primary constructor to ensure each instance of the class is unique.
Primary constructor parameters are used to initialize properties in data class.
Data classes are designed to hold data, so having at least one parameter ensures uniqueness of instances.
Without parameters, instances of data class would be identical and defeat the purpose of data class.
Technical Lead
2.7k
salaries
| ₹11.3 L/yr - ₹38.5 L/yr |
Senior Associate
1.9k
salaries
| ₹8 L/yr - ₹27 L/yr |
Senior Software Engineer
1.5k
salaries
| ₹12.5 L/yr - ₹27 L/yr |
Senior Associate Technology L1
1k
salaries
| ₹8.8 L/yr - ₹29 L/yr |
Associate Specialist
770
salaries
| ₹12.9 L/yr - ₹40 L/yr |
TCS
Infosys
Wipro
HCLTech