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
Why wait and notify methods are declared in object class?
What is methods and methodology?
Will the jvm load the package twice at runtime?
What is a null point?
Can I use % with real numbers?
What is numeric data type?
What is an abstract method in java programming?
What all access modifiers are allowed for top class ?
Why do we use predicate in java?
What do you understand by java?
What is the difference between abstraction and encapsulation?
Which are the two subclasses under exception class?
What is double parsedouble in java?
How do you invoke a method?
What are the parts of a method?