Filter interviews by
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There were 2 interview rounds.
It included concepts of Java oops sql basic math & networks
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 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 applied via Company Website and was interviewed in Mar 2024. There were 3 interview rounds.
posted on 25 May 2024
I applied via LinkedIn and was interviewed in Apr 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
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.
Synchronization is the process of coordinating multiple threads to ensure safe and consistent access to shared resources.
Synchronization is used to prevent race conditions and ensure thread safety.
It can be achieved using synchronized blocks or methods.
Synchronization can cause performance issues if not used properly.
Example: Synchronizing access to a shared counter variable in a multi-threaded application.
Encapsulation is the process of hiding implementation details and providing access to only necessary information.
Encapsulation is achieved through access modifiers such as public, private, and protected.
It helps in achieving data abstraction and information hiding.
Encapsulation provides better control over the data and prevents unauthorized access.
Example: A class with private variables and public methods to access the...
An interface in Java is a collection of abstract methods and constants that can be implemented by a class.
Interfaces are used to achieve abstraction and provide a way to implement multiple inheritance in Java.
All methods in an interface are abstract by default and cannot have a body.
A class can implement multiple interfaces but can only extend one class.
Interfaces can also have default and static methods with a body.
Ex...
Collection framework is a set of classes and interfaces that provide a way to store and manipulate groups of objects.
It provides interfaces like List, Set, Queue, etc. for storing collections of objects.
It also provides classes like ArrayList, HashSet, PriorityQueue, etc. that implement these interfaces.
It allows easy manipulation of collections using methods like add, remove, contains, etc.
It provides algorithms like ...
ArrayList is not synchronized while Vector is synchronized.
ArrayList is faster than Vector as it is not synchronized.
Vector is thread-safe while ArrayList is not.
Vector is a legacy class while ArrayList is not.
Vector can grow by a specified amount while ArrayList grows by 50% of its size.
Example: ArrayList
Example: list.add(1); vector.add(1);
Example: list.get(0);
Legacy classes in Java are the classes that have been replaced by newer versions but are still supported for backward compatibility.
Legacy classes are part of the Java API and are still supported for backward compatibility.
They have been replaced by newer versions but are still used in older applications.
Examples of legacy classes include Vector, Hashtable, and Enumeration.
Legacy classes are not recommended for use in ...
Joins in SQL are used to combine data from two or more tables based on a related column.
Joins are used to retrieve data from multiple tables in a single query.
There are different types of joins such as inner join, left join, right join, and full outer join.
Inner join returns only the matching rows from both tables, left join returns all rows from the left table and matching rows from the right table, right join returns...
Autoboxing is the automatic conversion of primitive data types to their corresponding object wrapper classes.
Autoboxing allows primitive data types to be used as objects.
Auto-unboxing is the reverse process of autoboxing.
Autoboxing and auto-unboxing are performed automatically by the compiler.
Example: int i = 10; Integer j = i; // autoboxing
Example: Integer j = 10; int i = j; // auto-unboxing
Where clause filters rows before grouping, having clause filters groups after grouping.
Where clause is used to filter rows based on a condition before grouping.
Having clause is used to filter groups based on a condition after grouping.
Where clause is used with SELECT, UPDATE, DELETE statements.
Having clause is used with SELECT statement and GROUP BY clause.
Where clause cannot contain aggregate functions.
Having clause c...
Software Engineer
39
salaries
| ₹2.5 L/yr - ₹6.5 L/yr |
Senior Software Engineer
16
salaries
| ₹6 L/yr - ₹10 L/yr |
QA Engineer
15
salaries
| ₹2.5 L/yr - ₹5 L/yr |
Technical Lead
8
salaries
| ₹10 L/yr - ₹14 L/yr |
Programmer
8
salaries
| ₹2.5 L/yr - ₹4 L/yr |
Infosys
TCS
Wipro
HCLTech