Filter interviews by
I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.
8 part of mcq questions with verbal logical and analytical and technical question of 4 parts
10 question of program in our choosen languages
Top trending discussions
I applied via Naukri.com and was interviewed in Jan 2024. There was 1 interview round.
Round 1 was an online hackerank coding test + technical MCQs.
It consisted of 5 MCQs + 1 SQL problem + 1 DSA problem based on queue + 1 Graph question + 1 java based question to create a REST API.
HashMap is not thread-safe while ConcurrentHashMap is thread-safe.
HashMap is not thread-safe and can cause ConcurrentModificationException if modified while iterating.
ConcurrentHashMap allows concurrent modifications without causing any exception.
ConcurrentHashMap achieves thread-safety by dividing the map into segments and locking only a portion of the map during updates.
ConcurrentHashMap is suitable for high-concurre...
Java 8 introduced several new features including lambda expressions, streams, functional interfaces, and default methods.
Lambda expressions allow you to write code in a more concise and readable way.
Streams provide a way to work with sequences of elements and perform operations on them.
Functional interfaces are interfaces with a single abstract method, which can be implemented using lambda expressions.
Default methods a...
I applied via Company Website and was interviewed in Sep 2024. There was 1 interview round.
Reverse a string while keeping the position of spaces intact
Split the string into an array of characters
Iterate through the array and reverse the characters while keeping track of space positions
Join the array back into a string
I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.
I applied via Campus Placement and was interviewed in Jul 2022. There were 2 interview rounds.
Simple java coding questions on file io, atomic integers etc
I was interviewed in Oct 2021.
Round duration - 60 minutes
Round difficulty - Easy
Technical Interview round with questions on DSA and Java.
Given an array A
of size N
, initialized with all zeros, and another array ARR
of M
pairs of integers representing operations. Each operation consists of a range where e...
Find the maximum element in an array after performing a series of increment operations on specified ranges.
Initialize an array of size N with all zeros
Iterate through the operations and increment elements within specified ranges
Return the maximum element in the array after all operations
HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to find the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
Retrieving a value involves hashi...
Overriding equals and hashCode methods in Java is important for proper object comparison and hashing.
Equals method is used to compare two objects for equality, while hashCode method is used to generate a unique integer value for an object.
By overriding equals and hashCode methods, we can ensure that objects are compared based on their actual content rather than memory address.
This is crucial for collections like HashMa...
Round duration - 60 minutes
Round difficulty - Medium
Technical Interview round with questions based around Java.
Use two threads to print even and odd numbers in increasing order.
Create two threads, one for printing even numbers and one for printing odd numbers.
Use a shared variable to keep track of the current number to be printed.
Synchronize access to the shared variable to ensure correct ordering of numbers.
Use a loop in each thread to print the next number and update the shared variable.
CopyOnWriteArrayList creates a new copy of the underlying array whenever an element is added, modified, or removed.
CopyOnWriteArrayList is thread-safe and suitable for scenarios where reads are more frequent than writes.
Adding, modifying, or removing elements in CopyOnWriteArrayList creates a new copy of the underlying array, ensuring thread safety.
Iterators on CopyOnWriteArrayList operate on the original array and do
Synchronized Collection is thread-safe but may have performance issues, while Concurrent Collection is optimized for concurrent access.
Synchronized Collection uses synchronized keyword to achieve thread-safety, while Concurrent Collection uses non-blocking algorithms like CAS (Compare and Swap).
Synchronized Collection locks the entire collection during modification, leading to potential performance bottlenecks, while C...
Tip 1 : Thread concept is must for Morgan Stanley. So prepare that on priority
Tip 2 : Basic concepts of Oops/collection framework should be clear.
Tip 3 : Array based program will be asked so have some hands-on.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I applied via Indeed and was interviewed in Jul 2024. There was 1 interview round.
Objects of String are stored in the String Pool in Java.
String objects are stored in the String Pool, a special memory area in Java heap memory.
String literals are automatically stored in the String Pool.
String objects created using the new keyword are not stored in the String Pool.
String.intern() method can be used to store a String object in the String Pool.
A bean in Spring Boot is a Java object that is instantiated, assembled, and managed by the Spring IoC container.
Beans are defined in the Spring configuration file or using annotations like @Component, @Service, @Repository, etc.
Beans are singleton by default but can be scoped as prototype, request, session, etc.
Beans are injected into other beans using dependency injection.
Example: @Component annotation is used to defi
Query parameters are used to pass data to a web server through the URL, while path parameters are part of the URL itself.
Query parameters are key-value pairs added to the end of a URL after a '?'
Path parameters are variables within the URL path itself, denoted by curly braces {}
Example of query parameter: www.example.com/api/users?id=123
Example of path parameter: www.example.com/api/users/{userId}
Exceptions are recoverable errors that can be handled in code, while errors are unrecoverable issues that usually result in program termination.
Exceptions are checked at compile time, while errors are unchecked.
Exceptions are subclasses of Throwable, while errors are subclasses of Error.
Examples of exceptions include FileNotFoundException, NullPointerException, while examples of errors include OutOfMemoryError, StackOv
I applied via Walk-in and was interviewed in Jan 2024. There was 1 interview round.
based on 1 interview
Interview experience
Software Developer
5
salaries
| ₹0 L/yr - ₹0 L/yr |
Java Developer
5
salaries
| ₹0 L/yr - ₹0 L/yr |
Graphic Designer
5
salaries
| ₹0 L/yr - ₹0 L/yr |
Embedded Developer
5
salaries
| ₹0 L/yr - ₹0 L/yr |
Business Development Manager
4
salaries
| ₹0 L/yr - ₹0 L/yr |
Bajaj Finserv
Wells Fargo
JPMorgan Chase & Co.
HSBC Group