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

前端 未结 17 1461
有刺的猬
有刺的猬 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:23

    The style dataType[] arrayRefVar is preferred. The style dataType arrayRefVar[] comes from the C/C++ language and was adopted in Java to accommodate C/C++ programmers.

提交回复
热议问题