What's the difference between constructors and other methods?
Short Answer
Views 628
Answer:
Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.