If you do not define a constructor, Java provides one default constructor that initializes all instance variables with ________.

  • null values
  • random values
  • the default values
  • zeros
When you don't define a constructor in a Java class, Java provides a default constructor. This default constructor initializes all instance variables with their default values, which can be zero for numeric types, false for booleans, and null for reference types.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *