Need to use public,static keywords in main function?
Answer Posted / anjani kumar jha
public is used because from anywhere u r able to call ur
main method
static-static is the entry point of main function which is
executing by jvm(at run time) in other word signature of
the main function.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What do you mean by an interface in java?
Is null a string?
Does hashset allow duplicates in java?
What are "methods" and "fields"?
What do you mean by Function Overloading in java?
What is the difference between abstract classes and interfaces?
When does a class need a virtual destructor?
How many types of voids are there?
Is void a type?
Which collection is thread safe in java?
What is the purpose of a transient variable?
What does singleton class mean?
What is assembly used for?
What is the dot operator?
What do you understand by access specifiers in Java?