X vs Y?

In interviews, many questions are asked as comparisons:

  • Why X over Y?
  • When to use X instead of Y?
  • What are the trade-offs?

This section captures clear, concise, and interview-ready differences.


🔹 String vs StringBuilder vs StringBuffer

🔹 == vs equals()

🔹 final vs finally vs finalize

🔹 REST vs SOAP

🔹 Monolith vs Microservices

🔹 @Component vs @Service vs @Repository

🔹 @Controller vs @RestController


Table of contents


This site uses Just the Docs, a documentation theme for Jekyll.