i
Onetoinfinite
Filter interviews by
I applied via TopHire
Answering questions related to Java development and architecture
Monolithic architecture is a traditional approach where all components of an application are tightly coupled into a single unit
Microservices architecture is a modern approach where an application is divided into smaller, loosely coupled services
Singleton class is a design pattern that restricts the instantiation of a class to a single object
Static variable...
The default server in a Spring Boot application is Tomcat. Other servers can be configured by adding dependencies and modifying the configuration.
The default server in Spring Boot is Tomcat, but other servers like Jetty or Undertow can be used.
To configure a different server, you need to exclude the default server dependency and add the desired server dependency in the pom.xml file.
You also need to modify the applicati...
Top trending discussions
I was interviewed in Jul 2020.
No, calling finish() in onCreate() will not call onResume() or other lifecycle functions before onDestroy().
Calling finish() in onCreate() will immediately destroy the activity without calling any other lifecycle methods.
If you want to finish an activity after it has been created and resumed, you should call finish() in onPause() or onStop().
It is generally not recommended to call finish() in onCreate() as it can lead
RecyclerView is a flexible view for providing a limited window into a large data set.
RecyclerView is used to display large sets of data efficiently
It uses a ViewHolder pattern to recycle views
Corner cases include handling empty data sets and updating data dynamically
Communication between activity and fragment is done through interfaces.
Activity implements an interface and passes it to the fragment
Fragment can then call methods of the interface to communicate with the activity
This allows for communication between the two components without tight coupling
Find the second largest element in an array of strings.
Sort the array in descending order and return the second element.
Iterate through the array and keep track of the largest and second largest elements.
Use a priority queue to find the second largest element.
Adda 247
Futurense Technologies
Airblack
Prepca Eduserv