Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why singleton is so hot question in lateral interview?

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have gone through many times in Java interview and found Singleton is so much hot topic for any interview.

Don't know how much vastly this pattern by the real world application and not sure how much majorly the single uses in real world.

or its just a hipe.


1) Multi-threading in Singleton class - Synchronized context
2) Real time example in live application.
3) when to use and why Singleton we have use?
4) possibility of cloning the singleton Object.
5) Not to break singleton pattern
6) How the single will support if we have n millions of users access to a single Object - Is one Object is able to support all the request from many users. or do we need to break here singleton or synchronized context will solve the issue.

If you try googliing there is no such nice answer for all the above question.



Need someone help who have very deep understanding on these above questions.. will help everyone to make a line for singleton.

Regards,
prabhat
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prabhat Ranjan wrote:Hi All,

I have gone through many times in Java interview and found Singleton is so much hot topic for any interview.


IMO, it's because interviewers (just like those being interviewed) google for "top interview questions" or read up some canned "java interview questions" and consider that as a benchmark for interviews. If you look around our Jobs Discussion forum here, you'll notice many users looking for similar resources. Fortunately, not all interviewers fall in this category.

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
agree with you..but need some more post from others as well.

Even i am not user the panels has deep understanding on this or not. If i say about the panels means they are worked on many projects and using such patterns and have background on Singleton.

or they just ask to test. As of now i have worked 6+ Years in java and haven't got a chance to implement as such.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic