Filter interviews by
I applied via Referral and was interviewed in Feb 2024. There were 2 interview rounds.
Spring is a popular Java framework used for building enterprise applications.
Spring provides comprehensive infrastructure support for developing Java applications.
It simplifies the development of Java applications by providing ready-to-use components.
Spring enables developers to focus on business logic rather than boilerplate code.
Examples: Spring Boot, Spring MVC, Spring Security.
Spring is a framework for building Java applications, while Spring Boot is a tool for quickly creating standalone Spring-based applications.
Spring is a comprehensive framework for building Java applications, providing support for dependency injection, aspect-oriented programming, and more.
Spring Boot is an opinionated tool that simplifies the setup and configuration of Spring applications, allowing for quick developmen...
Database connection can be established using JDBC or ORM frameworks like Hibernate.
Use JDBC to establish a connection by loading the driver, creating a connection object, and executing SQL queries.
Use ORM frameworks like Hibernate to map Java objects to database tables and handle database operations through object-oriented programming.
Ensure proper configuration of database connection parameters such as URL, username, ...
Spring Boot microservices are small, independent, loosely coupled services built using the Spring Boot framework.
Microservices are small, independent services that work together to form a larger application.
Spring Boot is a framework that simplifies the development of Java-based applications.
Spring Boot microservices are designed to be easily deployable and scalable.
Each microservice typically handles a specific busine...
I used microservices in my last project to break down a monolithic application into smaller, independent services.
Implemented microservices architecture using Spring Boot and Docker
Separated functionalities like user management, payment processing, and inventory management into individual services
Used RESTful APIs for communication between microservices
Deployed microservices on Kubernetes for scalability and fault tole
Top trending discussions
I applied via Naukri.com and was interviewed before Sep 2023. There was 1 interview round.
Comparator is used to compare objects externally, while Comparable is used to compare objects internally.
Comparator is implemented in a separate class, while Comparable is implemented in the same class as the object being compared.
Comparator allows for multiple ways of sorting objects, while Comparable only allows for one way.
Example: Sorting a list of custom objects by a specific attribute can be done using Comparator...
List is an ordered collection that allows duplicate elements, while Set is an unordered collection that does not allow duplicates.
List maintains the insertion order of elements, while Set does not guarantee any specific order.
List allows duplicate elements, while Set does not allow duplicates.
Examples: List - ArrayList, LinkedList. Set - HashSet, TreeSet.
posted on 9 Jan 2025
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Function Overriding is a concept in object-oriented programming where a subclass provides a specific implementation of a method that is already provided by its parent class.
In Function Overriding, a subclass can provide a specific implementation of a method that is already defined in its parent class.
The method in the subclass must have the same name, return type, and parameters as the method in the parent class to ove...
Using LINQ query to order data in C#
Use the OrderBy method to sort data in ascending order
Use the OrderByDescending method to sort data in descending order
You can also use ThenBy and ThenByDescending for secondary sorting
Out parameter is used to pass data out of a method or function.
Out parameters are used when a method needs to return multiple values.
They are declared using the 'out' keyword in C#.
Example: void CalculateArea(int length, int width, out int area) { area = length * width; }
Reflection in C# allows for inspecting and manipulating metadata of types at runtime.
Reflection is used to dynamically create instances of types, access properties, and invoke methods.
Examples include using reflection to load assemblies at runtime, inspect attributes of types, and generate code dynamically.
Reflection can be slow and should be used judiciously due to performance overhead.
I applied via Recruitment Consulltant and was interviewed in Sep 2024. There were 2 interview rounds.
Find the second largest element from array of strings
Sort the array in descending order
Access the element at index 1 to get the second largest element
Failsafe integrators prioritize system stability by handling errors gracefully, while fail fast integrators prioritize quick detection and resolution of errors.
Failsafe integrators focus on ensuring the system continues to function even in the presence of errors.
Fail fast integrators aim to quickly identify and address errors to prevent further issues.
Failsafe integrators often use techniques like retries, circuit brea...
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
JVM is the virtual machine that runs Java bytecode, JRE is the runtime environment for Java programs, and JDK is the development kit for creating Java applications.
JVM (Java Virtual Machine) is responsible for running Java bytecode on different platforms.
JRE (Java Runtime Environment) includes JVM, libraries, and other components necessary to run Java applications.
JDK (Java Development Kit) is a software development ki...
String is immutable in Java to ensure security, thread safety, and optimization.
Immutable strings prevent accidental changes to sensitive data like passwords.
Immutable strings allow for safe sharing of string literals across multiple threads.
Immutable strings enable string pooling for memory optimization.
Example: String str = "Hello"; str.concat(" World"); // str remains "Hello"
posted on 19 Sep 2024
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Overloading is having multiple methods with the same name but different parameters, while overriding is implementing a method in a subclass with the same signature as in the superclass.
Overloading allows different methods to have the same name but different parameters.
Overriding involves implementing a method in a subclass with the same signature as in the superclass.
Overloading is determined at compile time based on t...
I applied via Naukri.com and was interviewed in Apr 2024. There were 3 interview rounds.
SAGA pattern is a design pattern used in microservices architecture to manage distributed transactions.
SAGA pattern breaks down a long-running transaction into a series of smaller, independent transactions.
Each step in the SAGA pattern is a separate service that communicates with other services through events.
If a step fails, compensating transactions are executed to rollback the changes made by previous steps.
Example:...
API stands for Application Programming Interface. It defines the methods and data formats that applications can use to communicate with each other.
API is a set of rules and protocols that allows different software applications to communicate with each other.
To secure an API, you can use authentication methods like OAuth, API keys, or JWT tokens.
Implementing encryption (HTTPS) and rate limiting can also enhance API secu...
posted on 29 May 2024
Find duplicate characters in a given array of strings
Iterate through each string in the array
For each string, iterate through each character and store the count in a hashmap
If the count of any character is greater than 1, it is a duplicate
Code for REST API using Spring Boot with annotations
Use @RestController annotation to define the class as a REST controller
Use @RequestMapping annotation to map HTTP requests to handler methods
Use @GetMapping, @PostMapping, @PutMapping, @DeleteMapping annotations for specific HTTP methods
Use @PathVariable annotation to extract values from the URI
Use @RequestBody annotation to bind HTTP request body to a method paramete
I was interviewed in Aug 2023.
A simple program to print 'fizz' for multiples of 3, 'buzz' for multiples of 5, and 'fizzbuzz' for multiples of both.
Iterate through numbers from 1 to n.
Use modulo operator to check divisibility by 3 and 5.
Print 'fizz', 'buzz', or 'fizzbuzz' accordingly.
Yes, classes implementing an interface must implement interface methods.
Classes implementing an interface must provide concrete implementations for all methods declared in the interface.
Failure to implement all interface methods will result in a compilation error.
Interfaces are used to define a contract that implementing classes must adhere to.
Interview experience
TCS
Accenture
Wipro
Cognizant