Why do we use public static with the main function in Java?
Answer Posted / ravikiran(aptech mumbai)
public means we are allowing the main method to be accessed
any where in the application.and is declared static because
jvm will look for the static one's once it completes the
loading the class.
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
How to find the given number is a prime number or not by getting input from the user
How do you sort words in java?
Explain all java features with real time examples
How to sort numbers in java without array?
State the difference between creating string as new () and literal.
What is a buffer in java?
Explain about main thread in java?
How do listeners work?
What is boolean keyword in java?
What is difference between char array and string?
What is the console in java?
What is the purpose of the runtime class in java programming?
How define set in java?
What is data structure in java?
What is functional interface in java?