Senior Java Developer Interview Questions

5,575 senior java developer interview questions shared by candidates

Design an Elevator system Problem on Linked list and Hashing Observer pattern and Questions on Adapter pattern Question on XPATH queries Question on Memory mgmt and Performance Questions on Garbage collection and stack queues
avatar

Senior Software Engineer Java

Interviewed at IBM

3.9
Aug 13, 2015

Design an Elevator system Problem on Linked list and Hashing Observer pattern and Questions on Adapter pattern Question on XPATH queries Question on Memory mgmt and Performance Questions on Garbage collection and stack queues

What is the difference between JDK and JRE? Answer: JDK (Java Development Kit) is a software development kit used to develop Java applications, while JRE (Java Runtime Environment) is used to run Java applications. JDK includes JRE along with development tools like compilers and debuggers. What are the different types of loops in Java? Answer: The main loops in Java are for, while, and do-while. Each is used for repeating a block of code multiple times with different conditions and iteration patterns. Explain Java's memory management. Answer: Java uses automatic garbage collection to manage memory. The JVM (Java Virtual Machine) allocates memory for objects on the heap, and the garbage collector reclaims memory by removing objects that are no longer reachable. What is polymorphism in Java? Answer: Polymorphism is the ability of one method or object to take many forms. It can be achieved via method overriding (runtime polymorphism) and method overloading (compile-time polymorphism).
avatar

Senior Java Developer

Interviewed at IBM

3.9
Dec 2, 2024

What is the difference between JDK and JRE? Answer: JDK (Java Development Kit) is a software development kit used to develop Java applications, while JRE (Java Runtime Environment) is used to run Java applications. JDK includes JRE along with development tools like compilers and debuggers. What are the different types of loops in Java? Answer: The main loops in Java are for, while, and do-while. Each is used for repeating a block of code multiple times with different conditions and iteration patterns. Explain Java's memory management. Answer: Java uses automatic garbage collection to manage memory. The JVM (Java Virtual Machine) allocates memory for objects on the heap, and the garbage collector reclaims memory by removing objects that are no longer reachable. What is polymorphism in Java? Answer: Polymorphism is the ability of one method or object to take many forms. It can be achieved via method overriding (runtime polymorphism) and method overloading (compile-time polymorphism).

Viewing 4101 - 4110 interview questions

Glassdoor has 5,575 interview questions and reports from Senior java developer interviews. Prepare for your interview. Get hired. Love your job.