In Java, what are public static void main string args?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
The access modifier "public" is used to define who has access to this method. Any class can use this method as well.
• The Java keyword "static" indicates when something is class-based. Java makes main() static so that it can be accessed without requiring the creation of a class instance. Since the JVM calls main() before creating any objects, the compiler will raise an error if main is not set to static. It can only use the class to directly call static methods.
• The method that defines the method's return type is called Void. There is no value returned by that procedure.
• Main is the name of the method that the JVM looks for when an application (with a certain signature only) starts. It is
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
The access modifier "public" is used to define who has access to this method. Any class can use this method as well.
• The Java keyword "static" indicates when something is class-based. Java makes main() static so that it can be accessed without requiring the creation of a class instance. Since the JVM calls main() before creating any objects, the compiler will raise an error if main is not set to static. It can only use the class to directly call static methods.
• The method that defines the method's return type is called Void. There is no value returned by that procedure.
• Main is the name of the method that the JVM looks for when an application (with a certain signature only) starts. It is
| Is This Answer Correct ? | 0 Yes | 0 No |
What is java english?
Can you start a thread twice in Java?
What is non static block in java
10 Answers Emphasis, Ness Technologies,
how an we achive multiple inhetitance in java using interface..??
What is finalize method?
Is char a data type in java?
What are event-delegation model and event-inheritance model? Which is best?
what is deadlock in threads? with example
How to split arraylist elements in java?
Is constructor inherited?
What is ellipsis in java?
what is the use of abstract class?
3 Answers Amdocs, Atos Origin, Invictus,