In Java, what are public static void main string args?
Answer Posted / 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 |
Post New Answer View All Answers
what is comparable and comparator interface?
List some java keywords sun like c, c + + keywords?
What is Classloader in Java?
Explain about complier design(phases)
What is passing by reference in java?
How we can run a jar file through command prompt in java?
What are the difference between composition and inheritance in java?
What is parseint?
What is foreach loop in java?
Can we have any code between try and finally blocks?
What are 3 data types?
Can we assign null to double in java?
What are the two ways of implementing multi-threading in java?
How to access arraylist elements in java?
What is java and its types?