...
This noncompliant code example declares a variable arity method using Object
. It accepts an arbitrary mix of parameters of any object type. Legitimate uses of such declarations are rare (but see below in the "AppicabilityApplicability" section).
Code Block | ||
---|---|---|
| ||
ReturnType method(Object... args) { } |
...