Page 321 - CA_Blue( J )_Class10
P. 321
1. Assertion (A): Constructor overloading allows for different ways of initializing an object in Java.
Reason (R): Overloaded constructors must have the same name as the class but different parameter lists.
2. Assertion (A): A class in Java can have multiple constructors with the same parameter types.
Reason (R): Overloaded constructors in Java must have different parameter lists to differentiate them.
Ans. 1. a 2. d
21 st
E. Case-based questions. Century #Experiential Learning
Skills
Constructor overloading in Java is a concept where a class can have more than one constructor with different parameter lists. This
allows for the creation of objects in multiple ways, providing flexibility in initializing objects with various sets of data.
The following points need to be remembered:
Constructors must have the same name as the class.
Overloaded constructors must differ in the number or type of their parameters.
Constructor overloading allows for different ways of initializing an object.
1. What is constructor overloading in Java?
a. A class having more than one constructor with different return types.
b. A class having more than one constructor with different names.
c. A class having more than one constructor with different parameter lists.
d. A class having more than one constructor with the same parameter lists.
2. Which of the following is NOT a key point of constructor overloading in Java?
a. Constructors must have the same name as the class.
b. Overloaded constructors must differ in the number or type of their parameters.
c. Constructors can have different return types.
d. Constructor overloading allows for different ways of initializing an object.
3. Which of the following statements about overloaded constructors is true?
a. Overloaded constructors must have the same number of parameters.
b. Overloaded constructors must have the same type of parameters.
c. Overloaded constructors can have different names.
d. Overloaded constructors must have different parameter lists.
4. Which of the following statements is false about constructor overloading?
a. Constructor overloading allows a class to have more than one constructor.
b. Overloaded constructors must have the same parameter names.
c. Overloaded constructors can have different numbers of parameters.
d. Overloaded constructors can have different types of parameters.
Ans. 1. c 2. c 3. d 4. b
Unsolved Questions
A. Tick ( ) the correct answer.
1. Which of the following is the correct statement?
a. A constructor is automatically called when an object is created.
b. A single class can have one or more constructors.
c. The name of the constructor must be same as the name of the class.
d. All of these
2. Which of the following does not have a return type?
a. Method b. Constructor
c. Both a and b d. None of these
3. Which of the following types of constructor is known as no-argument constructor?
a. Default b. Parameterised constructor
c. Non-parameterised d. Copy
319
Constructors 319

