Computer Applications
A default constructor has …………… .
- no parameters
- one parameter
- two parameters
- multiple parameters
Java Constructors
1 Like
Answer
no parameters
Reason — A default constructor has no parameters.
Answered By
1 Like
Related Questions
A constructor has …………… return type.
- a void
- more than one
- String[] args
- no
A constructor is used when an object is …………… .
- created
- destroyed
- assigned a value
- abstracted
Pick the correct answer.
- A constructor has exactly the same name as its defining class.
- A constructor method does not have a return type.
- A constructor can be invoked only via the new operator.
- All of the above
In constructor overloading, …………… .
- All constructors must have the same name as that of the class.
- All constructors must have the same number of arguments.
- All constructors must have arguments of type String[] args.
- All constructors must have no arguments.