KARTHICK.C , SCJP6-93%
(Born to Win)
Nitish Bangera wrote:String... is a vararg and String[] are both same.
String... x means many parameters of the same type and accessed by x.
try using public static void main(String... args) and access args[0] from main. Pass an argument and then see if it prints.
KARTHICK.C , SCJP6-93%
(Born to Win)
KARTHICK.C , SCJP6-93%
(Born to Win)
Vinayagar Karpagam wrote:Hi Karthick,
Swapping the methods in the super and sub-classes would give us a fair idea on what's happening. The code doesn't even compile.
Vinayagar. K
SCJP(95%)
Jyoti B.Shah wrote:Yes. As Pooja mentioned, the code complies. However, this won't compile:
KARTHICK.C , SCJP6-93%
(Born to Win)
[SCJP 6.0]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |