What would be the behaviour if this() and super() used in a method
What would be the behaviour if this() and super() used in a method?
a) Runtime error
b) Throws exception
c) compile time error
d) Runs successfully
Answer: c
Explanation: this() and super() cannot be used in a method. This throws compile time error.
支付宝转账赞助
支付宝扫一扫赞助
微信转账赞助
微信扫一扫赞助