Java Constructor
Q1.
What is the purpose of a constructor in Java?
Q2.
Which of the following statements about constructors is true?
Q3.
What happens if you don’t define a constructor in a class?
Q4.
Which of the following is not true about constructors?
Q5.
How is a constructor different from a method?