File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Why singleton is so hot question in lateral interview? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Why singleton is so hot question in lateral interview?" Watch "Why singleton is so hot question in lateral interview?" New topic
Author

Why singleton is so hot question in lateral interview?

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 397
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

Joined: Jul 20, 2005
Posts: 10290
    
168

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.


[My Blog] [JavaRanch Journal]
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 397
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.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why singleton is so hot question in lateral interview?