i
Adeptia
Filter interviews by
Multithreading and treemap based coding questions
HashMap is a data structure that stores key-value pairs and uses hashing to quickly 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 determine 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.
HashMap uses the hashCode() method of ke...
Count the number of occurrences of a substring in a given string.
Use a loop to iterate through the string and check for the substring at each position.
Use the indexOf method to find the starting index of the substring in the string.
Increment a counter each time the substring is found.
Handle edge cases like empty string or null substring.
I applied via Naukri.com and was interviewed in Jul 2024. There were 3 interview rounds.
Serialization is the process of converting an object into a byte stream, while deserialization is the process of converting a byte stream back into an object in Java.
To implement serialization in Java, a class must implement the Serializable interface.
Use ObjectOutputStream to write objects to a file or network.
To implement deserialization, use ObjectInputStream to read objects from a file or network.
Make sure all fiel...
I applied via Job Portal and was interviewed in Sep 2024. There was 1 interview round.
Adeptia interview questions for popular designations
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Multithreading is the ability of a CPU to execute multiple threads concurrently, allowing for parallel processing.
Multithreading allows for better utilization of CPU resources by running multiple threads simultaneously.
Threads share the same memory space, allowing for efficient communication and data sharing.
Examples of multithreading include running multiple tasks in a web server concurrently or processing data in par
Reentrant lock is a synchronization primitive that allows a thread to acquire the same lock multiple times.
Allows a thread to acquire the same lock multiple times
Prevents deadlock by allowing a thread to re-enter the lock it already holds
Useful in situations where a method needs to call another method that also requires the same lock
Example: Java's ReentrantLock class
ConcurrentHashMap allows multiple threads to read/write concurrently, while HashMap is not thread-safe.
ConcurrentHashMap allows multiple threads to read/write concurrently without blocking each other.
HashMap is not thread-safe and can lead to data corruption if accessed by multiple threads simultaneously.
ConcurrentHashMap achieves thread-safety by using internal synchronization mechanisms like locks or CAS operations.
H...
I applied via Job Portal and was interviewed in Apr 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Jul 2023. There were 4 interview rounds.
Probability, pi-chart.
Print of 5 table,reverse a given string.
I applied via Referral and was interviewed before Jul 2023. There were 2 interview rounds.
I was nice interviewer was good.
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to represent multiple data types.
Examples include method overloading and method overriding in object-oriented programming.
I applied via Amcat and was interviewed in Apr 2021. There were 4 interview rounds.
based on 8 interviews
Interview experience
6-8 Yrs
Not Disclosed
7-10 Yrs
Not Disclosed
2-5 Yrs
Not Disclosed
Software Engineer
84
salaries
| ₹0 L/yr - ₹0 L/yr |
Desktop Support Engineer
63
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
53
salaries
| ₹0 L/yr - ₹0 L/yr |
Softwaretest Engineer
22
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Trainee
16
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech