Doubt about constructor in JAVA
- by Harry Joy
I have few doubts regarding constructor in java
Can a constructor be private? If yes then in which condition?
Constructor is a method or not?
If constructor does not return anything then why we are getting a new Object every time we call it.
Whats the default access modifier of a constructor if we did not specify.
Thanks & Regards
Edit----------
Answer for 1 & 3 are very clear. But still doubt about 2&4 as i'm getting different answers for them.