I recently cleared
SCJP. I may be having some idea:
varargs means Zero or more arguments
In line 8:
new Gabc() -> Called constructor with
zero argument i.e. correct
new Gabc() -> Called constructor with
zero argument i.e. correct
new Gabc(Gabc object 1, Gabc object 2( -> Called constructor with two arguments of type Gabc, which is allowed by constructor(zero or
MORE argument)
--Deepesh Deomurari
SCJP - 94%