Filter interviews by
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Use Java 8 lambdas to covert list of employees to map
Use stream() method to convert the list to a stream
Use Collectors.toMap() method to convert the stream to a map
Specify the key and value mappings in the toMap() method
Microservices communicate through lightweight protocols like HTTP, messaging queues, and RPC.
HTTP: RESTful APIs are commonly used for communication between microservices.
Messaging queues: Services can communicate asynchronously through message brokers like RabbitMQ or Kafka.
RPC (Remote Procedure Call): Services can directly call each other's functions over a network.
Transactions across microservices can be handled using distributed transactions or compensating transactions.
Use distributed transactions to ensure all services commit or rollback together
Implement compensating transactions to handle failures and maintain data consistency
Consider using event sourcing or message queues to decouple services and ensure eventual consistency
Run time polymorphism is the ability of a method to behave differently based on the object it is called on.
Run time polymorphism is achieved through method overriding in inheritance.
It allows a subclass to provide a specific implementation of a method that is already provided by its superclass.
The actual method that gets called is determined by the type of object at runtime.
Example: Animal class has a method 'makeSound...
Singleton class in Java ensures only one instance of the class is created.
Use private constructor to prevent instantiation from outside the class.
Provide a static method to get the instance of the class.
Use a private static variable to hold the instance of the class.
Top trending discussions
I applied via Campus Placement and was interviewed before May 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed before Feb 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed before Jul 2020. There were 4 interview rounds.
The project involved designing and implementing a new network infrastructure for a large corporation.
Conducted a thorough analysis of the existing network infrastructure
Designed a new network architecture that met the company's needs
Implemented the new network infrastructure with minimal disruption to business operations
Tested and optimized the new network to ensure optimal performance
Provided ongoing support and maint
I applied via Walk-in and was interviewed before Feb 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed before Jun 2020. There were 3 interview rounds.
I applied via Referral and was interviewed before Jun 2020. There were 5 interview rounds.
I applied via Campus Placement and was interviewed before Nov 2020. There was 1 interview round.
I applied via Referral and was interviewed before Mar 2021. There were 2 interview rounds.
Very easy
I applied via Walk-in and was interviewed before May 2019. There were 5 interview rounds.
based on 1 interview
Interview experience
TCS
Accenture
Wipro
Cognizant