Full Stack Java Developer Interview Questions for Freshers
Core Java
- What are the OOP principles in Java?
- What is the difference between == and .equals()?
- What is a constructor? How is it different from a method?
- Explain the concept of inheritance with an example.
- What is the difference between ArrayList and LinkedList?
- What is the use of final, finally, and finalize keywords?
- What is exception handling in Java?
- What are HashMap, HashSet, and Hashtable? Differences?
Spring / Spring Boot
- What is Spring Framework? What are its advantages?
- What is Spring Boot? How is it different from Spring?
- What are the main annotations used in Spring Boot?
- Explain the Spring Bean lifecycle.
- What is dependency injection?
- What is the use of @Autowired and @Component?
- How does Spring Boot manage database connectivity?
- What is the use of [Link] or [Link]?
Hibernate / JPA
- What is ORM?
- What is the difference between Hibernate and JDBC?
- What are annotations like @Entity, @Id, @OneToMany, etc.?
- What is the difference between get() and load()?
- What is the role of SessionFactory?
Frontend (HTML, CSS, JavaScript, React/Angular Basics)
Full Stack Java Developer Interview Questions for Freshers
- What are semantic HTML tags?
- What is the difference between id and class in CSS?
- What is the DOM and how does JavaScript interact with it?
- What is the difference between == and === in JavaScript?
- What is an event listener in JavaScript?
- What are states and props in React (if you've used React)?
- Explain the concept of components in frontend frameworks.
Database (MySQL / PostgreSQL)
- What is a primary key and foreign key?
- Write a query to fetch all records from a table.
- What are joins? Explain different types of joins.
- What is normalization?
- What are indexes? When should you use them?
REST API & Web Services
- What is a RESTful API?
- What are HTTP methods and what are they used for (GET, POST, PUT, DELETE)?
- What are status codes in HTTP? (e.g., 200, 404, 500)
- How do you create a REST API in Spring Boot?
- What is Postman and how is it used in API testing?
Build Tools & Version Control
- What is Maven or Gradle? Why are they used?
- What is a POM file in Maven?
- What is Git? What are basic Git commands you use?
- What is the difference between git pull and git fetch?
Soft Skills / HR Questions
Full Stack Java Developer Interview Questions for Freshers
- Tell me about yourself.
- What projects have you worked on?
- How do you handle debugging issues?
- Why do you want to be a full-stack developer?
- Where do you see yourself in 5 years?