Computer Applications
A constructor has …………… return type.
- a void
- more than one
- String[] args
- no
Java Constructors
5 Likes
Answer
no
Reason — A constructor has no return type.
Answered By
2 Likes
Related Questions
A member method having the same name as that of the class is called …………… .
- an alias
- a friendly method
- a constructor
- a protected method
A constructor is used when an object is …………… .
- created
- destroyed
- assigned a value
- abstracted
A default constructor has …………… .
- no parameters
- one parameter
- two parameters
- multiple parameters
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