Can a constructor be protected?
Answer / Shiv Ram Verma
No, in Java, constructors cannot be declared with an access modifier (such as protected or private). By default, constructors have the same access level as their enclosing class.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is polymorphism in java? What are the kinds of polymorphism?
Can you call a method on a null object?
What is java virtual machine? Explain
What is package protected in java?
What is prefix of a string?
What are singleton services?
what is thread in Java ?
What is the difference between the boolean & operator and the && operator in java programming?
What is the benefit of lambda expressions?
What is integer parseint?
What is field name?
What is the purpose of javac exe?