Given: Which class has a default constructor?
A.
X only
B.
Y only
C.
Z only
D.
X and Y
E.
Y and Z
F.
X and Z
G.
X, Y and Z
Given: Which class has a default constructor?
A.
X only
B.
Y only
C.
Z only
D.
X and Y
E.
Y and Z
F.
X and Z
G.
X, Y and Z
??
default constructor is looks like
public ClassName(){}
but in
class Y{Y(){}}
actually we have constructor with package visibility
class Y{package Y(){}}
you should remember no access specifier != public
but Why not Z??
I mean the Option
F. X and Z
A