Filter interviews by
Top trending discussions
posted on 11 Dec 2024
I applied via LinkedIn and was interviewed in Nov 2024. There were 3 interview rounds.
Basic DSA from the hacker rank website
Technology advantage or not
All aptitude topics,logical reasoning
Dependency Injection is a design pattern in which components are given their dependencies rather than creating them internally.
Allows for easier testing by providing mock dependencies
Promotes loose coupling between components
Improves code reusability and maintainability
Examples: Constructor injection, Setter injection, Interface injection
In Java, exceptions can be handled using try-catch blocks to catch and handle specific exceptions.
Use try-catch blocks to catch exceptions and handle them gracefully
Use multiple catch blocks to handle different types of exceptions
Use finally block to execute code regardless of whether an exception is thrown or not
Throw custom exceptions using throw keyword
map transforms each element in a stream, while flatMap transforms each element into multiple elements
map applies a function to each element in a stream and returns a new stream of the results
flatMap applies a function that returns a stream for each element in the original stream, then flattens the streams into a single stream
Example: map - stream.map(x -> x * x), flatMap - stream.flatMap(str -> Arrays.stream(str.split(
ConcurrentModificationException occurs when a collection is modified while iterating over it.
Use Iterator to iterate over the collection instead of foreach loop.
If modification is necessary, use Iterator's remove() method instead of collection's remove() method.
Consider using synchronized collections or ConcurrentHashMap to avoid ConcurrentModificationException.
Linked list is a data structure where elements are stored in nodes with pointers to the next node. Array list is a dynamic array that can grow or shrink in size.
Linked list allows for efficient insertion and deletion of elements anywhere in the list.
Array list provides fast access to elements using index, but slower insertion and deletion compared to linked list.
Example: Linked list - 1 -> 2 -> 3 -> 4 -> 5, Array list
The @Controller annotation is used for traditional MVC controllers, while @RestController is used for RESTful web services.
The @Controller annotation is used to define a class as a Spring MVC controller, which can handle HTTP requests and return a view.
The @RestController annotation is used to define a class as a controller for RESTful web services, which can handle HTTP requests and return data in JSON or XML format.
T...
I want to switch to explore new technologies and challenges in a different industry.
Interested in learning new skills and technologies
Seeking new challenges and opportunities for growth
Want to explore different industry perspectives
I applied via Referral
I applied via Campus Placement and was interviewed in Jan 2024. There were 2 interview rounds.
Technical round was really good
Binary search is a search algorithm that finds the position of a target value within a sorted array.
Divide and conquer approach
Compares target value with middle element of array
If target value is smaller, search left half; if larger, search right half
Repeat process until target value is found or subarray is empty
A linked list is a data structure consisting of nodes where each node contains a data field and a reference to the next node in the sequence.
Linked list elements are not stored in contiguous memory locations like arrays.
Each node in a linked list contains data and a reference to the next node.
Linked lists can be singly linked (each node points to the next node) or doubly linked (each node points to both the next and pr
I applied via LinkedIn and was interviewed in Apr 2024. There were 2 interview rounds.
I was asked with writing the code and algorithms. Also lots of MySQL queries
I applied via Naukri.com and was interviewed in Aug 2023. There was 1 interview round.
Exceptions in inheritance can be handled by using try-catch blocks in the derived class.
Use try-catch blocks in the derived class to catch exceptions thrown by the base class methods.
Handle exceptions specific to the derived class in the catch block.
Consider using super() to call the base class constructor within the try block.
Avoid catching general exceptions unless necessary to maintain code clarity.
Ensure proper exc...
based on 2 reviews
Rating in categories
SDE (Software Development Engineer)
33
salaries
| ₹24 L/yr - ₹40 L/yr |
Sde1
10
salaries
| ₹33.2 L/yr - ₹37.5 L/yr |
Software Engineer
9
salaries
| ₹30 L/yr - ₹36.5 L/yr |
Software Developer
8
salaries
| ₹30 L/yr - ₹35 L/yr |
Software Development Engineer
8
salaries
| ₹24 L/yr - ₹37 L/yr |
TCS
Infosys
Wipro
HCLTech