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 a bubble sort in java?
What data type is a string?
What is JFC?
What is a Transient Object?
Who is founder of java?
What about interrupt() method of thread class ?
When can we say that threads are not lightweight process in java?
List types of storage classes in java?
What is internal variable?
Can a private method of a superclass be declared within a subclass?
Can an unreferenced object be referenced again?
Do loops java?
What is threaded programming and when is it used? : Java thread
What is the exact difference in between unicast and multicast object? Where we will use?
What is r * in math?