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.
I applied via Referral and was interviewed before Jun 2021. There were 2 interview rounds.
I applied via LinkedIn and was interviewed before Nov 2020. There was 1 interview round.
I applied via Recruitment Consultant and was interviewed before Aug 2020. There was 1 interview round.
I applied via Referral and was interviewed before Mar 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Feb 2021. There were 2 interview rounds.
I applied via Referral and was interviewed before Jul 2020. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Nov 2017. There were 4 interview rounds.
The length of all India roads is approximately 5.5 million kilometers.
The total length of all India roads is estimated to be around 5.5 million kilometers.
India has one of the largest road networks in the world.
The road network in India includes national highways, state highways, district roads, and village roads.
The length of national highways alone is over 100,000 kilometers.
The road infrastructure plays a crucial ro...
based on 1 interview
Interview experience
TCS
Accenture
Wipro
Cognizant