Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1052 :

Posted: Thu Feb 21, 2013 12:31 pm
by ETS User
Maybe the explaination of the solution is errata..

The jvm shouldn't report any error given the following method definitions:

String m1(int... i){}
String m1(int[] i){}

The decompilation of the given class doesn't yelds the same method signatures, and results in the same signatures.
At runtime the methods seems to behave like overloaded method

Feel free to correct my remarks

Best regards

Re: About Question enthuware.ocajp.i.v7.2.1052 :

Posted: Thu Feb 21, 2013 12:50 pm
by Guest
Sorry for the previous post, the explaination is correct. I got mixed up.

Best regards