Question: Which statement about a no-argument constructor is true? A. The Java compiler will always insert a default no-argument constructor if you do not define a

Which statement about a no-argument constructor is true?

A. The Java compiler will always insert a default no-argument constructor if you do not define a no-argument constructor in your class.

B. For a class to call super() in one of its constructors, its parent class must explicitly implement a no-argument constructor.

C. If a class extends another class that has only one constructor that takes a value, then the child class must explicitly declare at least one constructor.

D. A class may contain more than one no-argument constructor.

Step by Step Solution

3.32 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct answer is C If a class extends another class that has only one constructor that takes a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!