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 return used for in java?
What is constructor chaining and how is it achieved in java?
What is a key in java?
How to implement an arraylist in java?
Should you use singleton pattern?
What is the difference between checked exception and unchecked exception?
java Technical questions asked by JPMC
placement papaers of spring computing technology
What is unicode in java?
Can java list contain duplicates?
What is stored procedure. How do you create stored procedure ?
What is exception hierarchy in java?
What is the numeric promotion?
What is the difference between dom and sax parser in java?
Is nullpointerexception checked or unchecked?