Constructor rules - Core Java

Q.  Find whether these two rules are correct or not defined by the constructor
1. Constructor name must be same as its class name.
2. Constructor must have no explicit return type.

- Published on 13 Jul 15

a. True
b. False

ANSWER: True

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)