Welcome to "Coding Center"!! Coding Center is the place where you will find something new to learn about Java and Python. If you are looking to brush up on your skills before going for an interview, this article is for you...

In this post, I'm going to cover questions that are really popular among the interviewers for a Java Developer position. I'm a Java Developer with around 7 years of experience and I've prepared a list of questions with my interview experiences that are a must for every Java Interview. If you are going for an interview, you should brush up below questions.


Must Interview Questions for Java Developer


Core Java

  1. What are OOPs? Difference between Encapsulation and Abstraction. See Answer Here
  2. What is String Pool? See Answer Here
  3. What is the difference between Inheritance and Composition? Which one we should use when?
  4. What are SOLID principles?
  5. How many ways are there to create an Object?
  6. What are marker interfaces? Why do we need them? How does JVM identify a marker interface?
  7. What are the new features of the newest Java version that you are currently using?
  8. Questions on Lambda expressions

Advanced Java

  1. Differentiate between Arraylist, LinkedList, and HashSet.
  2. How does HashSet work internally? How does it maintain uniqueness?
  3. What is ConcurrentHashMap? Differentiate between HashTable, HashMap, and ConcurrentHashMap. How does ConcurrentHashMap work internally?
  4. What is a Singleton class? How do you create a Singleton class? How do you break a Singleton class? How to create a Singleton class for a multithreaded environment?
  5. How many ways are there to create a Thread? Which one to use and why?

Spring and Spring Boot

  1. What is Dependency Injection?
  2. How many ways to inject beans? Which one is best and why?
  3. What is the default bean scope? How to change/define the scope of a bean?
  4. How does RequestMapping annotation work internally?
  5. How to enable transactions? What's the benefit of using transactions?
  6. What are Aspect, Advice, PointCut, and JoinPoint in AOP?
  7. How to disable a specific auto-configuration? How to register a custom auto-configuration?
  8. What is ConditionalOnMissingBean annotation?
  9. Why do we need Spring Profiles?
  10. Which is better - Properties or YAML? Why?

No comments:

Post a Comment

| Designed by Colorlib