Skip to content

abhishekvermaa10/Interview-Questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

72 Commits
Β 
Β 

Repository files navigation

Interview Questions

This repository contains list of interview questions answered in my YouTube and Instagram videos.


πŸ“Œ Table of Contents

  1. What is Functional Interface?
  2. Whether Java is Interpreted or Compiled language?
  3. What is Singleton class?
  4. What is the difference between throw vs throws?
  5. What is Object class?
  6. What is the difference between Mutable vs Immutable?
  7. What is HQL?
  8. How to create Immutable class in Java?
  9. What is final keyword?
  10. What is static keyword?
  11. What is the difference between method Overloading and Overriding?
  12. What is @SpringBootApplication annotation?
  13. What is the difference between Checked and Unchecked exception?
  14. What is N+1 problem?
  15. What is Serialization?
  16. What is Marker interface?
  17. Why do we need Interface and Abstract Class in Java?
  18. Can we have concrete methods in Java interface?
  19. What is Encapsulation?
  20. What is Abstraction?
  21. What is Inheritance?
  22. Can static methods be abstract in Java?
  23. What is @Override annotation in Java?
  24. What are the new features of Java 8?
  25. What is Streams API?
  26. What is Optional class?
  27. What is the difference between Comparable and Comparator?
  28. What is the difference between Eager Loading and Lazy Loading?
  29. Explain final, finally {} and finalize()?
  30. What are the new Java 9 features?
  31. What are the new Java 10 features?
  32. Why multiple inheritance is not allowed in Java?
  33. What is Hibernate Criteria API?
  34. What is volatile keyword?
  35. What is the difference between ArrayList and LinkedList?
  36. Can Java code be executed without generating .class file?
  37. What is the difference between HashSet, LinkedHashSet and TreeSet?
  38. What is the difference between JDK, JRE and JVM?
  39. Can we have default arguments in Java?
  40. Can a constructor be final in Java?
  41. What are the new Java 11 features?
  42. What is Classloader in Java?
  43. What is Primary Cache in Hibernate?
  44. Why String is immutable in Java?
  45. What is an Enum in Java?
  46. What is the difference between synchronized, volatile and atomic in Java?
  47. What is the difference between TDD and BDD?
  48. What is the difference between isEmpty() and isBlank()?
  49. Why StringBuffer is obsolete?
  50. What is Nested class in Java?
  51. What is Secondary Cache in Hibernate?
  52. How to prevent Singleton Pattern from Serialization?
  53. Explain try, catch and finally in Java?
  54. How to prevent Singleton Pattern from Cloning?
  55. What is a Constructor in Java?
  56. Can Constructors be overloaded?
  57. What is atomic variable in Java?
  58. How to prevent Singleton Pattern from Reflection?
  59. What is super keyword in Java?
  60. What is this keyword in Java?
  61. Can constructors have a return type?
  62. What is differnce between Stack memory and Heap memory?
  63. What is the difference between Hibernate and JPA?
  64. What is an Association in Java?
  65. What is an Aggregation in Java?
  66. What is Composition in Java?
  67. What is the difference between JDBC and Hibernate?
  68. What are Annotations in Java?
  69. What is DateTime API in Java?
  70. What are 4 main default Functional Interfaces in Java?
  71. What are stereotype annotations in Spring?
  72. What are Design Patterns in Java?
  73. What is Cloning in Java?
  74. What are Wrapper classes in Java?
  75. Does Java has Copy Constructor?
  76. What is Package in Java?
  77. What happens when the main() isn't declared as static?
  78. Difference between instance and local variables?
  79. What is Record in Java?
  80. What is Multithreading in Java?
  81. Explain Thread life cycle?
  82. What are Daemon Threads in Java?
  83. What is Garbage collection in Java?
  84. What is the difference between HashMap and Hashtable?
  85. What is the difference between Call By Value and Call By Reference?
  86. What is executor framework in Java?
  87. Why Java is Call by Value?
  88. How does Thread Pool reuse a thread?
  89. What is the difference between Runnable and Callable?
  90. Is Java still relevant in 2024?
  91. What is Race condition in Multithreading?
  92. What is Deadlock in Multithreading?
  93. What is Livelock in Multithreading?
  94. Can we create infinite threads in Java?
  95. What is Sealed class?
  96. What is typecasting in Java?
  97. What is hashcode() and equals() contract?
  98. What is Hashing?
  99. Explain internal working of HashSet?
  100. Explain internal working of HashMap?
  101. Why Java is not pure object oriented language?
  102. Why to use Getter and Setter methods?
  103. What are Parallel Streams in Java?
  104. What is a ForkJoinPool in Java?
  105. What is a ReentrantLock?
  106. What is the difference between PermGen and Metaspace in Java?
  107. What are Covariant return types?
  108. What is the difference between == and equals() in Java?
  109. What is Cyclic Dependency?
  110. What is Memory Leak in Java?
  111. What is Thread Safe code?
  112. What is ThreadLocal?
  113. What is Method Reference?
  114. What is Tight Coupling and Loose Coupling?
  115. What is Inversion of Control?
  116. What is Dependency Injection?
  117. What is a Bean in Spring Framework?
  118. What is Autowiring in Spring?
  119. What is @Qualifier?
  120. What if the bean mentioned in @Qualifier is not available?
  121. What is @Primary?
  122. What if the bean annotated with @Primary is not available?
  123. What is the difference between @Qualifier and @Primary?
  124. What are SOLID Principles?
  125. What is S in SOLID Principles?
  126. What is O in SOLID Principles?
  127. What is L in SOLID Principles?
  128. What is I in SOLID Principles?
  129. What is D in SOLID Principles?
  130. Is public static void main insignificant in Java now?
  131. What are ACID Properties?
  132. What is a String Pool?
  133. What is an Integer Pool?
  134. How does intern() method works?
  135. What is A in ACID Properties?
  136. What is C in ACID Properties?
  137. What is I in ACID Properties?
  138. What is D in ACID Properties?
  139. Can static variables be autowired in Spring?
  140. What is spring-boot-starter-parent?
  141. What is spring-boot-starter dependency?
  142. What is the difference between Spring and Spring Boot?
  143. What should we use in finance related logic - Double or BigDecimal?
  144. Why is it called classpath?
  145. Can we delete the application.properties file in Spring Boot?
  146. What is Scope in Spring Boot?
  147. What is Spring Initializr?
  148. What is CommandLineRunner?
  149. How to implement Logging in Spring Boot?
  150. What is ConcurrentHashMap?
  151. What is better: application.properties or application.yml?
  152. What is Aspect Oriented Programming?
  153. What is the difference between @Component and @Bean?
  154. How to sort 10GB of data with 1GB of RAM?
  155. Explain the working of MVC?
  156. What is the difference between @Controller and @RestController?
  157. What are Virtual Threads?
  158. What is @SpringBootTest?
  159. What is Spring Boot DevTools?
  160. What is Spring Data JPA?
  161. SQL to find employee with Nth highest salary?
  162. What is CompletableFuture?
  163. What is the difference between Future and CompletableFuture?
  164. What is Object/Relational Impedance Mismatch?
  165. What is the difference between EntityManager and EntityManagerFactory?

Goal

Answer to these questions is available in my YouTube shorts and Instagram reels. I am not sharing any answer here because goal is not to provide you questions and answers which you need to cram before interview, but to provide you idea that which question I have answered on which day. It will be always better to go through all questions at your own pace, understand my way of explaning and then create your own answer.


πŸŽ₯ YouTube Tutorial

Answers have been explained in an easy way on my YouTube channel Abhishek Verma and on Instagram Abhishek Verma.

πŸš€ Stay healthy, keep learning, and keep growing!


🌐 Connect with me


πŸ› οΈ Languages & Frameworks


πŸ–₯️ Software & Tools


Copyright Β© 2025 Abhishek Verma - All Rights Reserved

About

It contains list of interview questions answered in videos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published