Filter interviews by
Clear (1)
Basic ques on speed distance
Easy level question based on DSA
A constructor is a special type of method in a class that is automatically called when an object of that class is created.
Constructors have the same name as the class they belong to
They are used to initialize the object's state
Constructors can have parameters to customize the initialization process
Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.
Occurs in multitasking environments
Caused by a circular wait, hold and wait, no preemption, and mutual exclusion
Examples include two processes waiting for each other to release a lock or resource
Threads in Java allow for concurrent execution of multiple tasks within a single program.
Threads are lightweight sub-processes within a program.
They allow for parallel execution of tasks, improving performance.
Java provides built-in support for creating and managing threads using the Thread class.
Example: Creating a new thread - Thread myThread = new Thread(() -> { // task to be executed });
Example: Starting a thread -
String Builder is mutable, String Buffer is synchronized.
String Builder is faster as it is not synchronized.
String Buffer is thread-safe, String Builder is not.
String Builder should be used in single-threaded environments, String Buffer in multi-threaded.
Example: StringBuilder sb = new StringBuilder(); StringBuffer buff = new StringBuffer();
Top trending discussions
I applied via Naukri.com and was interviewed in Dec 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed before Jan 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 Feb 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed before Aug 2020. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Jul 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Nov 2020. There was 1 interview round.
based on 1 interview
Interview experience
Software Developer
20
salaries
| ₹3.9 L/yr - ₹8.2 L/yr |
Junior Software Developer
10
salaries
| ₹3 L/yr - ₹6 L/yr |
Senior Software Developer
5
salaries
| ₹7.5 L/yr - ₹20 L/yr |
Software Developer Trainee
4
salaries
| ₹3 L/yr - ₹4.3 L/yr |
Junior Developer
4
salaries
| ₹3.9 L/yr - ₹7.5 L/yr |
TCS
Infosys
Wipro
HCLTech