What is the difference between variable arity and vararg methods?

John Zukowski

Basically nothing. It is just semantics. A method's arity is the number of arguments it takes. The arity of the main() method of a class is one since it takes one argument, a String[].

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact