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

Java研发军团

共 857字,需浏览 2分钟

 · 2022-11-22

今日单词  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应用程序接受它。


浏览 27
点赞
评论
收藏
分享

手机扫一扫分享

举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

举报