What is the use of static keyword in "public static void
main()"
Answer Posted / kiran kumar
here public is access modifier it can run out side of the
class.
static means it is constant.
void means it is no return type.
main() means the program will run from here.
| Is This Answer Correct ? | 8 Yes | 12 No |
Post New Answer View All Answers
What are the two ways of implementing multi-threading in java?
Can we sort a map in java?
Why do we need hashmap in java?
Why can we not override static method?
How to declare an arraylist in java?
Why do we use predicate in java?
What is thread synchronization in java?
What is a memory leak in java?
Why is java logo a cup of coffee?
What Is Query Throttling in java?
What is ‘has a’’ relationship in java?
What is difference between path and classpath?
Which is easier .net or java?
Can we declare a class as static?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?