Which two code snippets, added independently at line ***, can make the Buzzword class compile?

Given the two Java classes: Which two code snippets, added independently at line ***, can
make the Buzzword class compile?

Given the two Java classes: Which two code snippets, added independently at line ***, can
make the Buzzword class compile?

A.
super (100);

B.
super ();

C.
super (“Buzzword”);

D.
this (100);

E.
this ();

F.
this (“Buzzword”);



Leave a Reply 2

Your email address will not be published. Required fields are marked *


dwin

dwin

answer: C F

A, D: the constructor with int type parameter is private.
B, E: since Word and Buzzword already define the constructor, java wouldn’t add default constructor automatically.