What are constructors in Java?
Share
What are constructors in Java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
A constructor in Java is a special method that is used to initialize objects. The constructor is called when an object of a class is created.
Explanation:
A constructor in Java is a special method that is used to initialize objects. The constructor is called when an object of a class is created
.^__^