What is the use of static keyword in "public static void
main()"
Answer Posted / rozer willis
static keyword makes the main function static.And the
advantage to make it static is that it can call other
static methods of the sane class just by their names i.e.no
need to create object.And the static method cant be
override so it prevent the main method from onerriding.
Is This Answer Correct ? | 34 Yes | 4 No |
Post New Answer View All Answers
What is the similarity between dynamic binding and linking?
Is arraylist sorted in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is Classloader in Java?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What does arrays sort do in java?
What is the properties class?
If two threads have same priority which thread will be executed first ?
How big is a boolean?
How does queue work in java?
what is comparable and comparator interface?
What is the benefit of using enum to declare a constant?
Is 0 true or is 1 true?
What is the difference between integer parseint and integer valueof?
What does the “static” keyword mean?