Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
Take 2 classes.i.e., Class A,Class B. In Class B declare constructor as Private.But I have to access Class A using the constructor in Class B. How is it possible?One interviewer told that Through getInstance() method it's possible to access Class A.e Even Class B declare as Private. How is it possible? Explain with an example.
Questions by GeekAdmin answers by GeekAdmin
Related Answered Questions
Related Open Questions