Java Interview Preparation Plan - Dyashin Technosoft
Daily Preparation Routine
Day 1:
- Research Dyashin Technosoft
- Understand Java interview patterns
- Revise OOPs concepts
- Collections overview
- Practice basic OOPs and Collections problems
Day 2:
- Exception Handling (checked vs unchecked)
- Multithreading basics
- Java 8 Features: Lambda, Streams
- Practice Stream and Collection based problems
Day 3:
- HashMap, HashSet internal workings
- Memory Management (Heap, Stack, GC)
- Solve 10 coding questions (Arrays, Strings)
Day 4:
- Spring Core Concepts
- Spring Boot (important annotations)
- REST API Basics
- Hibernate (Session, CRUD basics)
Day 5:
- Solve 10 coding questions (DSA focused)
- Mini project using Spring Boot (CRUD API)
Java Interview Preparation Plan - Dyashin Technosoft
Day 6:
- Mock Interview: Rapid fire Java questions
- Basic System Design (Library, Bookstore)
- Final coding practice
Day 7:
- Revision of cheat sheets
- HR questions preparation
- Final relaxation and revision
Java Interview Question Bank
Core Java Basics
1. What is Object-Oriented Programming? List the 4 OOP principles.
2. Difference between Abstract Class and Interface?
3. Method overloading vs overriding?
4. Difference between '==' and '.equals()'?
5. What is a constructor? Can constructors be inherited?
6. Final keyword usage?
7. Difference between Stack and Heap memory?
8. Static variables and methods?
9. String vs StringBuilder vs StringBuffer.
10. Use of 'this' keyword.
Collections Framework
11. ArrayList vs LinkedList?
12. How HashMap works internally?
13. HashMap vs Hashtable?
14. Set vs List?
Java Interview Preparation Plan - Dyashin Technosoft
15. Fail-fast vs Fail-safe.
16. HashMap vs ConcurrentHashMap.
17. PriorityQueue use case.
18. Iterator vs ListIterator?
19. TreeMap vs HashMap?
20. equals() and hashCode() importance.
Exception Handling
21. Checked vs Unchecked exceptions?
22. Create custom exceptions.
23. try-catch-finally flow?
24. Returning from finally block?
25. Throwable class?
Multithreading & Concurrency
26. Thread vs Runnable?
27. Creating thread-safe classes?
28. Synchronization importance?
29. Deadlock explanation?
30. Volatile keyword?
31. wait(), notify(), notifyAll()?
32. ExecutorService usage.
Java 8 Features
33. Lambda Expression example?
34. Functional Interface examples?
35. Stream API basics?
36. Optional class usage?
37. Method references?
Java Interview Preparation Plan - Dyashin Technosoft
Spring & Hibernate Basics
38. Dependency Injection in Spring?
39. Role of @Autowired?
40. @Component vs @Service vs @Repository?
41. What is a Bean?
42. JPA and Hibernate difference?
43. save() vs persist() in Hibernate?
Coding/Problem Solving
44. Program to reverse a String.
45. Second largest number in array.
46. Check for palindrome string.
47. Remove duplicates from ArrayList.
48. Find missing number in 1 to n array.
49. Count character occurrences in a String.
50. Simple Producer-Consumer problem using wait/notify.