程序員JAVA全英文面試問答(6) Learning English by interview

今日單詞 Words for today
specifier 說明符
modifier 修飾符
invoke 調(diào)用
instance 實例
predefined 提前定義
argument 參數(shù)
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”是訪問修飾符,允許在不創(chuàng)建類的任何實例的情況下調(diào)用 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程序開始時調(diào)用的預(yù)定義方法
“String args [ ]” are the arguments of the type String, when a Java program is run, the Java application accepts it
“String args [ ]”是String類型的參數(shù),當(dāng)Java程序運行時,Java應(yīng)用程序接受它。
