What is “String args[]”? parameter in main method Java

前端 未结 17 1463
有刺的猬
有刺的猬 2020-11-21 23:58

I\'m just beginning to write programs in Java. What does the following Java code mean?

public static void main(String[] args)
  • What

17条回答
  •  梦如初夏
    2020-11-22 00:11

    In addition to all the previous comments.

    public static void main(String[] args) 
    

    can be written as

     public static void main(String...arg)
    

    or

     public static void main(String...strings)
    

提交回复
热议问题