Give a difference between a constructor and a method.
Long Answer
Views 67
Answer:
Constructor has the same name as class name whereas function should have a different name than class name.
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.