Filter interviews by
Transferring objects between threads involves synchronization and safe data sharing techniques in concurrent programming.
Use synchronized blocks or methods to ensure thread safety when accessing shared objects.
Utilize thread-safe data structures like ConcurrentHashMap or CopyOnWriteArrayList.
Leverage message passing using queues (e.g., BlockingQueue) to transfer objects between threads.
Implement the Observer patte...
To find the middle of a linked list, use the slow and fast pointer technique.
Initialize two pointers, slow and fast, at the head of the linked list.
Move the slow pointer by one node and the fast pointer by two nodes until the fast pointer reaches the end of the list.
The node pointed to by the slow pointer at this point is the middle of the linked list.
ANR stands for Application Not Responding, it occurs when the main UI thread is blocked for too long.
ANR can be prevented by offloading long-running tasks to background threads or services.
Optimizing code and reducing UI thread workload can also help prevent ANR.
Using tools like StrictMode can help identify potential ANR issues during development.
ArrayList is faster for accessing elements, while LinkedList is better for frequent insertions and deletions.
ArrayList uses an array to store elements, allowing for fast random access but slower insertions and deletions.
LinkedList uses nodes with references to the next and previous elements, making insertions and deletions faster but access slower.
For example, if you need to frequently add or remove elements in th...
TCP flow refers to the sequence of packets exchanged between two devices over a TCP connection.
TCP flow involves the establishment, data transfer, and termination of a TCP connection.
It includes the exchange of TCP segments containing data, acknowledgment, and control information.
TCP flow control mechanisms like sliding window and congestion control help regulate the flow of data.
TCP flow can be analyzed using too...
DNS flow refers to the process of how a DNS query is resolved from start to finish.
Client sends a DNS query to the recursive resolver.
Recursive resolver checks its cache for the answer, if not found, it sends the query to authoritative nameservers.
Authoritative nameservers respond with the IP address of the requested domain.
Recursive resolver caches the response and sends it back to the client.
Client now has the I...
Java String and Array problems often involve manipulation, searching, and sorting of data structures.
1. String Manipulation: Use methods like substring(), concat(), and replace(). Example: 'Hello'.substring(1, 4) returns 'ell'.
2. Array Sorting: Use Arrays.sort() to sort arrays. Example: int[] arr = {3, 1, 2}; Arrays.sort(arr); results in {1, 2, 3}.
3. Searching: Use Arrays.binarySearch() for sorted arrays. Example:...
Threading in Android allows multiple tasks to run concurrently, improving performance and responsiveness.
Threading can be implemented using classes such as AsyncTask, Handler, and Thread.
AsyncTask is used for short background tasks that need to update the UI, while Handler is used for communication between threads.
Thread is a low-level way to create a new thread for longer background tasks.
Care must be taken to av...
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
To find the middle of a linked list, use the slow and fast pointer technique.
Initialize two pointers, slow and fast, at the head of the linked list.
Move the slow pointer by one node and the fast pointer by two nodes until the fast pointer reaches the end of the list.
The node pointed to by the slow pointer at this point is the middle of the linked list.
ANR stands for Application Not Responding, it occurs when the main UI thread is blocked for too long.
ANR can be prevented by offloading long-running tasks to background threads or services.
Optimizing code and reducing UI thread workload can also help prevent ANR.
Using tools like StrictMode can help identify potential ANR issues during development.
Threading in Android allows multiple tasks to run concurrently, improving performance and responsiveness.
Threading can be implemented using classes such as AsyncTask, Handler, and Thread.
AsyncTask is used for short background tasks that need to update the UI, while Handler is used for communication between threads.
Thread is a low-level way to create a new thread for longer background tasks.
Care must be taken to avoid m...
ArrayList is faster for accessing elements, while LinkedList is better for frequent insertions and deletions.
ArrayList uses an array to store elements, allowing for fast random access but slower insertions and deletions.
LinkedList uses nodes with references to the next and previous elements, making insertions and deletions faster but access slower.
For example, if you need to frequently add or remove elements in the mid...
I applied via Campus Placement and was interviewed in Jun 2024. There were 3 interview rounds.
I appeared for an interview in Mar 2025, where I was asked the following questions.
To find the middle of a linked list, use two pointers: one moves slowly and the other moves quickly.
Initialize two pointers, 'slow' and 'fast', both pointing to the head of the linked list.
Move 'slow' by one node and 'fast' by two nodes in each iteration.
When 'fast' reaches the end of the list, 'slow' will be at the middle.
Example: For the list 1 -> 2 -> 3 -> 4 -> 5, 'slow' will point to 3 when 'fast' reach...
Transferring objects between threads involves synchronization and safe data sharing techniques in concurrent programming.
Use synchronized blocks or methods to ensure thread safety when accessing shared objects.
Utilize thread-safe data structures like ConcurrentHashMap or CopyOnWriteArrayList.
Leverage message passing using queues (e.g., BlockingQueue) to transfer objects between threads.
Implement the Observer pattern to...
TCP flow refers to the sequence of packets exchanged between two devices over a TCP connection.
TCP flow involves the establishment, data transfer, and termination of a TCP connection.
It includes the exchange of TCP segments containing data, acknowledgment, and control information.
TCP flow control mechanisms like sliding window and congestion control help regulate the flow of data.
TCP flow can be analyzed using tools li...
DNS flow refers to the process of how a DNS query is resolved from start to finish.
Client sends a DNS query to the recursive resolver.
Recursive resolver checks its cache for the answer, if not found, it sends the query to authoritative nameservers.
Authoritative nameservers respond with the IP address of the requested domain.
Recursive resolver caches the response and sends it back to the client.
Client now has the IP add...
I applied via LinkedIn and was interviewed in Aug 2023. There were 3 interview rounds.
I applied via Referral and was interviewed before Nov 2023. There were 3 interview rounds.
Hacker rank test, normal DSA
Array multiplication involves multiplying elements of an array by a scalar or another array element-wise.
Element-wise multiplication: Multiply corresponding elements of two arrays. Example: [1, 2, 3] * [4, 5, 6] = [4, 10, 18].
Scalar multiplication: Multiply each element of an array by a scalar. Example: 2 * [1, 2, 3] = [2, 4, 6].
Use loops or vectorized operations for efficiency in programming languages like Python or J...
Java String and Array problems often involve manipulation, searching, and sorting of data structures.
1. String Manipulation: Use methods like substring(), concat(), and replace(). Example: 'Hello'.substring(1, 4) returns 'ell'.
2. Array Sorting: Use Arrays.sort() to sort arrays. Example: int[] arr = {3, 1, 2}; Arrays.sort(arr); results in {1, 2, 3}.
3. Searching: Use Arrays.binarySearch() for sorted arrays. Example: int ...
Top trending discussions
I appeared for an interview before Apr 2024, where I was asked the following questions.
Basic questions on maths related parts and analysis skills
Coding questions from various Data Structure parts like linkedList stack queue
Aptitude test covering all technical questions
based on 7 interview experiences
Difficulty level
Duration
based on 39 reviews
Rating in categories
Software Engineer
22
salaries
| ₹4.2 L/yr - ₹15 L/yr |
Software Engineer2
10
salaries
| ₹8 L/yr - ₹15 L/yr |
Area Sales Executive
7
salaries
| ₹3.6 L/yr - ₹4.5 L/yr |
Application Support Engineer
7
salaries
| ₹4.2 L/yr - ₹7 L/yr |
Software Developer
6
salaries
| ₹7 L/yr - ₹11 L/yr |
G4S
SIS Prosegur Holdings
Securitas
myGate