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
Explain the concept of hashtables?
What is an object’s lock and which object’s have locks?
Write a program to check string is palindrome without using loop?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
What are the java ide’s?
Why put method is used?
Explain the difference between transient and volatile in java?
Why java is considered dynamic?
What are streams?
How does remove work in java?
Why do we need data structure in java?
What is the difference between an interface and an abstract class?
can used Protected Class outside Function.?
Describe different states of a thread.
State the merge-sort principle and its time complexity.