Multiple choice technology programming languages

If a constructor is defined with arguments, a default constructor is still provided automatically

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Java only provides a default no-argument constructor if no other constructor is explicitly defined. Once you define any constructor (with or without arguments), the default constructor is not automatically generated. If you need both parameterized and no-arg constructors, you must explicitly define both.