object arrays slight signatures


consider following slight signatures:



public foomethod (foo[] foos) { /*...*/ }


and



public foomethod (foo... foos) { /*...*/ }


explanation: former takes an array foo-objects an justification - foomethod(new foo[]{..}) - while latter takes an erratic volume arguments form foo, presents an array foo:s within slight - foomethod(fooobject1, fooobject2, etc...).



java throws fit both defined, claiming register methods. i investigator work, found out initial chapter unequivocally requires an eloquent array foo objects, that's wholly proceed method. second proceed indeed accepts both an erratic volume foo arguments also accepts an array foo objects.



so, doubt is, given latter slight seems some-more flexible, there any reasons initial example, have i missed anything vital?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?