The correct answer is: D. for no other parameters.
If you omit any constructor argument when you instantiate an object, you must use default values for the omitted arguments only. The other arguments will be initialized with their default values if they have any, or with null if they do not have any default values.
For example, consider the following code:
“`class Person {
String name;
int age;
Person(String name, int age) {
this.name = name;
this.age = age;
}
}
Person p1 = new Person(“John Doe”); // name is initialized with “John Doe” and age is initialized with 0
Person p2 = new
“`
In the first line of code, we create a new instance of the Person class with the name “John Doe”. In the second line of code, we create a new instance of the Person class without specifying any arguments. In this case, the name and age of the new instance will be initialized with their default values, which are null and 0, respectively.