Android interview – Telegram
Channel created
Channel photo updated
What is the name of the architectural style that separates responsibilities into models, views, and controllers?
Anonymous Quiz
1%
REST
6%
MVP (Model-View-Presenter)
12%
MVVM (Model-View-ViewModel)
81%
MVC (Model-View-Controller)
Which architectural pattern is best suited for an Android application to separate logic, UI, and data management?
Anonymous Quiz
10%
MVC
6%
MVP
80%
MVVM
4%
Singleton
Which Android component is responsible for managing the lifecycle of an activity?
Anonymous Quiz
29%
ActivityManager
35%
LifecycleOwner
32%
Activity
3%
Application
Which mechanism in Android is used for data exchange between application components?
Anonymous Quiz
58%
Intent
8%
SharedPreferences
25%
ContentProvider
8%
BroadcastReceiver
Which method is typically overridden in a ViewModel to perform cleanup operations when it is no longer needed?
Anonymous Quiz
22%
onDestroy()
21%
OnClear()
42%
onCleared()
8%
onDestroyed()
7%
OnCleared()
Which method of the android.widget.SimpleAdapter class is used to set data and layout for binding data with a view in Android applications?
Anonymous Quiz
16%
setDataSource()
26%
bindLayout()
29%
setAdapterData()
29%
setViewBinder()
What are the layers of clean architecture (Fernando Cejas)?
Anonymous Quiz
14%
View, Domain, Repository
74%
Presentation, Domain, Data
4%
View, Data
8%
Core, Domain, Data
FragmentManager.commit() method - synchronous or asynchronous?
Anonymous Quiz
49%
Synchronous
51%
Asynchronous
Which Android component is used for executing background tasks without a user interface?
Anonymous Quiz
3%
Activity
11%
BroadcastReceiver
84%
Service
2%
ContentProvider
🤩1
Question and answer

What is the difference between an abstract class and an interface in Java?

Answer: An abstract class is a class that cannot be instantiated, and it can have abstract and non-abstract methods. An interface, on the other hand, is a collection of abstract methods and constants that can be implemented by any class. One key difference between the two is that a class can implement multiple interfaces, but it can only extend one abstract class.

#question #answer #java
Question and answer

What is the difference between the “==” operator and the “.equals()” method in Java?

Answer: The “==” operator checks for object reference equality, while the “.equals()” method checks for object value equality. For example, two different String objects with the same value will return true when compared using “.equals()”, but false when compared using “==”.

#question #answer #java
👍1