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
Why is multiple inheritance not supported in java?
What are alternatives to java serialization?
What are the types of methods in java?
what r advatages of websphere? & how to deploy?
What is the use of bufferedreader?
What is math in java?
Difference between collection, collection and collections in java?
What are implicit objects in java?
When can an object reference be cast to an interface reference in java programming?
What is the difference between an if statement and a switch statement?
What is oop in java?
Define a package.
What is lossy conversion in java?
What is the intersection and union methods?
How do you convert boolean to boolean?