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
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is the difference between logical data independence and physical data independence?
What are the two types of exceptions in java? Which are the differences between them?
Explain the difference between arraylist and linkedlist in java?
What is a class component?
What are the basics of core java?
Is char a method in java?
What are kinds of processors?
How do you add an element to an arraylist in java?
What is the different types of functions?
How does a for loop work?
Explain reverse a linked list recursive java solution?
What is meant by binding in rmi?
Is java still relevant?
What does this () mean in constructor chaining concept?