adplus-dvertising
frame-decoration

Question

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

Posted under Java Programming

Answer: (c).compile time error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What would be the behaviour if this() and super() used in a method?