首页 文章详情

程序员JAVA全英文面试问答(6) Learning English by interview

Java研发军团 | 38 2022-11-22 11:21 0 0 0
UniSMS (合一短信)

今日单词  Words for today

specifier 说明符

modifier 修饰符

invoke 调用

instance 实例

predefined 提前定义

argument 参数

What does “public static void main (String args [ ] )“ signify? Explain.

“public static void main (String args [ ] )”是什么意思?请解释。

Answer –

回答 -

  • public” is the access specifier

  • “public”是访问说明符

  • “static” is the access modifier that allows main ( ) method to be invoked without creating any instance of the class

  • “static”是访问修饰符,允许在不创建类的任何实例的情况下调用 main() 方法

  • “void” is the return type that specifies that the main ( ) method won’t return any value

  • “void”是指定main()方法不返回任何值的返回类型

  • main ( ) is the pre-defined method that is called in the beginning of a java program

  • main()是java程序开始时调用的预定义方法

  • “String args [ ]” are the arguments of the type String, when a Java program is run, the Java application accepts it

  • “String args [ ]”是String类型的参数,当Java程序运行时,Java应用程序接受它。


good-icon 0
favorite-icon 0
收藏
回复数量: 0
    暂无评论~~
    Ctrl+Enter