JAVA DESIGN PATTERN Questions and Answers

Mention in how many ways can you create singleton pattern?

To create single objects there are two famous ways

  • Lazy loading
  • Eager loading