super() is always 1st line in constructor or method?

Options
- Yes
- No
- can’t say


CORRECT ANSWER : Yes

Discussion Board
Correct answer is yes

The answer is 'yes'. If you don't put in super(), the compiler puts it for you automatically as the first line of the constructor.

RN 09-29-2016 03:51 PM

Question not logical

IF super() is used, then is ALWAYS in first line. But not every constructor or method use super().

Question: "super() is always 1st line in constructor or method?" answer NO. Because sometimes i don't use super()

Mariusz 11-9-2015 07:57 AM

answer?

how??

yang 10-19-2015 01:42 PM

Write your comments


Enter the code shown above:

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


Advertisement