Filter interviews by
Clear (1)
Synchronization in Java is the process of controlling the access of multiple threads to shared resources to avoid conflicts.
Synchronization is used to prevent multiple threads from accessing shared resources simultaneously.
It can be achieved using synchronized keyword, locks, or atomic variables.
Example: synchronized block in Java ensures only one thread can execute the block at a time.
A thread is a lightweight sub-process that allows multiple tasks to be executed concurrently within a single process.
Threads allow for concurrent execution of tasks within a single process
Threads share the same memory space and resources of the process
Threads can communicate with each other through shared variables or message passing
Example: A web server handling multiple client requests concurrently using threads
Top trending discussions
I applied via Naukri.com and was interviewed in Jul 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed in Jul 2020. There was 1 interview round.
Java is platform independent due to its bytecode and JVM.
Java code is compiled into bytecode which is platform-independent.
JVM (Java Virtual Machine) interprets the bytecode and executes it on any platform.
JVM acts as an abstraction layer between the Java code and the underlying hardware.
This allows Java programs to run on any platform that has a JVM installed.
For example, a Java program written on a Windows machine ca...
I applied via Campus Placement and was interviewed before Jun 2020. There were 3 interview rounds.
I applied via Recruitment Consultant and was interviewed before Oct 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before Oct 2019. There were 3 interview rounds.
based on 1 interview
Interview experience
Information Technology Recruiter
70
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
51
salaries
| ₹0 L/yr - ₹0 L/yr |
Talent Acquisition Executive
49
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
48
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
26
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech