difference fn(String… args) vs fn(String[] args)

前端 未结 6 925
情书的邮戳
情书的邮戳 2020-11-28 03:47

Whats this syntax useful for :

    function(String... args)

Is this same as writing

    function(String[] args) 
<         


        
6条回答
  •  迷失自我
    2020-11-28 04:28

    On the receiver size you will get an array of String. The difference is only on the calling side.

提交回复
热议问题