Ezeiatech Systems
British Engines Interview Questions and Answers
Q1. What is intent services? Intent service vs service
Intent Service is a subclass of Service that performs a single operation on a separate thread.
Intent Service is used for long-running operations that do not require user interaction.
It is started with an Intent and runs on a separate thread.
It stops itself automatically when the operation is complete.
It can be used for tasks like downloading a file or uploading data to a server.
Intent Service is useful for performing background tasks without affecting the UI thread.
Q2. What is ForeGround services, how to implement them
Foreground services are services that have a higher priority and are visible to the user.
Foreground services are used to perform tasks that are noticeable to the user, such as playing music or downloading files.
They require a notification to be displayed to the user, indicating that the service is running.
To implement a foreground service, you need to create a service class and call startForeground() method in it.
You also need to create a notification using NotificationCompat...read more
Q3. Can a final class in java be inherited
No, a final class in Java cannot be inherited.
Final classes are those classes which cannot be extended or inherited.
If a class is declared as final, it means that it cannot be subclassed.
Final classes are used to prevent modification of a class's implementation.
Final classes are also used to improve performance and security.
For example, the String class in Java is a final class and cannot be inherited.
Q4. How to set bitrate in ExoPlayer
Bitrate can be set using DefaultTrackSelector in ExoPlayer
Create a DefaultTrackSelector instance
Create a TrackSelection.Factory instance
Set the bitrate using the factory
Set the track selector to the player
Q5. Differences between MVP and MVVM
MVP and MVVM are architectural patterns used in software development for separating concerns and improving maintainability.
MVP stands for Model-View-Presenter and is a pattern where the presenter acts as a mediator between the view and the model.
MVVM stands for Model-View-ViewModel and is a pattern where the view model acts as a mediator between the view and the model.
In MVP, the view is responsible for updating the presenter, while in MVVM, the view model is responsible for ...read more
Q6. HashMap vs Linked HashMap
HashMap is unordered while LinkedHashMap maintains insertion order.
HashMap provides faster access and retrieval of elements while LinkedHashMap maintains the order of insertion.
LinkedHashMap is useful when we need to maintain the order of insertion of elements.
HashMap is preferred when order is not important and faster access is required.
Example: HashMap is used in caching while LinkedHashMap is used in LRU cache implementation.
Top Android Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month