KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am a Java developer. In an interview I was asked a question about private constructors: Can you access a private constructor of a class and instantiate it? I answered 'No' but was wrong. Can you explain why I was wrong and give an example of instantiating an object with a private constructor?
Tags (comma-separated)
Save Edits
Cancel