Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread parth panchal
hi neha how are you send me a nice mail of nature plz reply me i m online now -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algo

Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread ROHIT SINGHAL
:) thanks for such gud words guys On Tue, Sep 6, 2011 at 2:47 PM, sukran dhawan wrote: > ya dont be upset if some one who is not as good as u get a job and u don > get it ... think positively ... think that the company don deserve u and > start working on ur weak areas > > On Tue, Sep 6, 2011 at

Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread sukran dhawan
ya dont be upset if some one who is not as good as u get a job and u don get it ... think positively ... think that the company don deserve u and start working on ur weak areas On Tue, Sep 6, 2011 at 2:34 PM, siddharam suresh wrote: > my personal experience. > guys don't regret while placements,

Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread siddharam suresh
my personal experience. guys don't regret while placements, it wont bring any work-ability in the preparation. always look for what was missing in the last interview, prepare well. I didnt prepare because of the initial failure in the placements(ended up where i did not planed). I wish that wont h

Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread rahul vatsa
:D may be u lost this to gt something better :-) On Tue, Sep 6, 2011 at 4:32 AM, ROHIT SINGHAL wrote: > due to this singleton class i lost 6.5 lpa opportunity :( in Hcentive noida > > > On Tue, Sep 6, 2011 at 12:58 PM, rahul vatsa wrote: > >> there is no restriction at all, you can create n no of

Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread ROHIT SINGHAL
due to this singleton class i lost 6.5 lpa opportunity :( in Hcentive noida On Tue, Sep 6, 2011 at 12:58 PM, rahul vatsa wrote: > there is no restriction at all, you can create n no of objects. A member > function can call a private constructor any number of times. > > Just 1 single object is cr

Re: [algogeeks] DE shaw question- urgent

2011-09-06 Thread rahul vatsa
there is no restriction at all, you can create n no of objects. A member function can call a private constructor any number of times. Just 1 single object is created bcoz this is the property of singleton class. A singleton class is a class which ensures the class has only one instance & it provid

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Pratz mary
bcoz u cant keep reinitializing the same object On 5 September 2011 22:15, Neha Singh wrote: > Guys hv a doubt, plz clarify .. > You mentioned that if a class has a private constructor then the object of > that class can be created using call to a static method which internally > calls the const

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Shravan Kumar
Calling the static method multiple times will return the same instance not multiple instances, that is the essence of singleton design pattern. Example: http://www.docjar.com/html/api/java/lang/Runtime.java.html On Mon, Sep 5, 2011 at 10:45 PM, ravindra patel wrote: > it usually works like this

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread ravindra patel
it usually works like this - public class Test1 { private static Test1 obj; // Static member hence singleton private Test1() // To prevent the Compiler from creating default constructor { // Do whatever initialization required } public static Test1 getIn

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Neha Singh
Guys hv a doubt, plz clarify .. You mentioned that if a class has a private constructor then the object of that class can be created using call to a static method which internally calls the constructor and returns its reference. I can't understand why only 1 object can be created as mentioned by yo

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Neha Singh
Thnks everybody .. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread amrit harry
hey guys fro where i can find open source project to workon?? On Mon, Sep 5, 2011 at 9:44 PM, sukran dhawan wrote: > for singletion class > > > On Mon, Sep 5, 2011 at 9:42 PM, Sanjay Rajpal wrote: > >> I think when we have to create a singleton class, we can use private >> constructor. Objects o

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread sukran dhawan
for singletion class On Mon, Sep 5, 2011 at 9:42 PM, Sanjay Rajpal wrote: > I think when we have to create a singleton class, we can use private > constructor. Objects of such classes can be constructed using static > functions that can be accessed using class name and scope resolution > operato

Re: [algogeeks] DE shaw question- urgent

2011-09-05 Thread Sanjay Rajpal
I think when we have to create a singleton class, we can use private constructor. Objects of such classes can be constructed using static functions that can be accessed using class name and scope resolution operators. This is useful because user can create only one object of that class, which is so