0% found this document useful (0 votes)
5 views

Java Developer Interview Question

The document contains a comprehensive list of interview questions for Java developers, covering fundamental concepts such as data types, exception handling, and object-oriented programming principles. It also includes advanced topics related to Java frameworks like Servlets, JDBC, and Spring Framework, addressing concepts like dependency injection and JPA. The questions are designed to assess both basic and advanced knowledge of Java programming and related technologies.

Uploaded by

bairagiaditya2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Java Developer Interview Question

The document contains a comprehensive list of interview questions for Java developers, covering fundamental concepts such as data types, exception handling, and object-oriented programming principles. It also includes advanced topics related to Java frameworks like Servlets, JDBC, and Spring Framework, addressing concepts like dependency injection and JPA. The questions are designed to assess both basic and advanced knowledge of Java programming and related technologies.

Uploaded by

bairagiaditya2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

JAVA DEVELOPER INTERVIEW QUESTIONS IT EXPERTS

1. What are the Data Types supported by Java ? What is Autoboxing and
Unboxing ?
2. What is the difference between an Interface and an Abstract class?
3. Difference between this() and super() in java ?
4. Why main() method is public, static and void in java ?
5. Difference between overriding and overloading in java?
6. In how many ways we can do exception handling in java?
7. Explain differences between checked and Unchecked exceptions in java?
8. Explain throw keyword in java?
9. Explain importance of throws keyword in java?
10. Explain the life cycle of thread?
11. Explain what is encapsulation?
12. What is inheritance ?
13. Explain importance of inheritance in java?
14. What is polymorphism in java?
15. Difference between Array and ArrayList ?
16. Difference between Comparator and Comparable in java?
17. Difference between arraylist and linkedlist?
18. Difference between Concurrent HashMap and synchronizedHashMap and
Normal Hashmap?
19. Explain the internal working of HashMap ?
20. What is marker Interface ?
21. Difference between == and equals() method in java ?
22. What is Functional Interface ?
23. What is Lambda Expression And how it works internally ?
24. What is Singleton Class and How to make it ?
25. What is Immutable Class How to make our own customizable Immutable
Class ?
26. Explain static keyword ?
27. Explain HashSet Internal Working ?
28. What is Interface explain its features ?
29. How can we Achieve multiple inheritance in java ?
30. What is Co Variant in java ?
JAVA DEVELOPER INTERVIEW QUESTIONS IT EXPERTS

31. Difference between jvm jdk jre ?


32. What is garbage collector in java ?
33. What is deamon thread in java ?
34. What is the difference between final, finally and finalize() ?
35. Difference Between yield, sleep and join method in java ?
36. What is Deadlock ?

ADVANCE JAVA QUESTIONS

1. What is Servlet ?
2. Explain about the servlet lifecycle ?
3. Diffrence between generic servlet and Http servlet ?
4. What is servlet context ?
5. What is web.xml or deployment descriptor ?
6. In how many ways we can deploy our web application in tomcat server ?
7. What is server container and web container ?
8. Explain minimum 5 tags from the web.xml ?
9. What is public and private pages in the servlet ?
10. What is the difference between doGet and doPost method ?
11. How does servlet works ?
12. What is request dispatcher and sendRedirect?
13. What is Jsp ? Explain how it is different from html ?
14. What are scriptlets ?
15. What are expressions ?
16. How are the jsp request handled?
17. What is JDBC ?
18. Explain the role of Driver in JDBC ?
19. What is the purpose of Class.forName method ?
20. What is Statement ?
21. What is Prepared Statement and Callable Statement and what is the
difference in both ?
22. What is connection pool ?
JAVA DEVELOPER INTERVIEW QUESTIONS IT EXPERTS

SPRING FRAMEWORK QUESTIONS

1. What is loose coupling?


2. What is a Dependency?
3. What is IOC (Inversion of Control)?
4. What is Dependency Injection?
5. Can you give few examples of Dependency Injection?
6. What is Auto Wiring ?
7. What are the important roles of an IOC Container?
8. What are Bean Factory and Application Context?
9. Can you compare Bean Factory with Application Context?
10. How do you create an application context with Spring?
11. What is Dispatcher Servlet?
12. How do you set up Dispatcher Servlet?
13. What does @Component signify?
14. What does @Autowired signify?
15. What’s the difference Between @Controller, @Component, @Repository,
and @Service Annotations in Spring?
16. What is the default scope of a bean?
17. Are Spring beans thread safe?
18. What are the other scopes available?
19. What are the different types of dependency injections?
20. What is setter injection?
21. What is constructor injection?
22. How do you choose between setter and constructor injections?
23. What are Starter Projects?
24. Can you give examples of important starter projects?
25. What is application.properties?
26. What are some of the important things that can customized in
application.properties?
JAVA DEVELOPER INTERVIEW QUESTIONS IT EXPERTS

27. What is Spring Boot Actuator?


28. How do you monitor web services using Spring Boot Actuator?
29. What is JPA?
30. What is Hibernate?
31. How do you define an entity in JPA?
32. What is an Entity Manager?
33. What is a Persistence Context?
34. How do you map relationships in JPA?
35. What are the different types of relationships in JPA?
36. How do you define One to One Mapping in JPA?
37. How do you define One to Many Mapping in JPA?
38. How do you define Many to Many Mapping in JPA?

You might also like