Filter interviews by
Immutable objects in Java are objects whose state cannot be changed after they are created.
Immutable objects are thread-safe and can be shared without the risk of data corruption.
String and wrapper classes like Integer and Boolean are examples of immutable objects in Java.
To create an immutable class, make the class final, all fields private, and only provide getters, no setters.
Top trending discussions
A thread is a lightweight process that can run concurrently with other threads within the same process.
Threads allow for parallel execution of tasks within a single process.
Threads share the same memory space and resources of the process they belong to.
Threads can communicate with each other through shared memory or message passing.
Examples: Java threads, POSIX threads (pthreads) in C/C++.
I was interviewed in Jul 2024.
2 Graph question of leetcode
I applied via Approached by Company and was interviewed in Feb 2024. There was 1 interview round.
Sorting of an array and aptitude
I was interviewed before Sep 2020.
Round duration - 60 Minutes
Round difficulty - Easy
Approach: In the Dynamic programming we will work considering the same cases as mentioned in the recursive approach. In a DP[][] table let’s consider all the possible weights from ‘1’ to ‘W’ as the columns and weights that can be kept as the rows.
The state DP[i][j] will denote maximum value of ‘j-weight’ considering all values from ‘1 to ith’. So if we consider ‘wi’ (weight in ‘ith’ row) we can...
a) Duplicate elements ...
The idea is to sort the array in decreasing order and return the second largest element in the array.
Round duration - 60 Minutes
Round difficulty - Easy
System Design Round
Design Twitter
Normalizations, Indexing, Transactions etc
Round duration - 30 Minutes
Round difficulty - Easy
It is just a formality
Where do you see yourself in 5 years?
What are your weakness ?
Tip 1 : System Design
Tip 2 : Practice questions from leetcode
Tip 3 : Have some projects.
Tip 1 : Mention what you know
Tip 2 : Good previous work to showcase
Udaan
Swiggy
CARS24
BlackBuck