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 are green threads in java?
What is the purpose of a volatile variable?
What is a java object and java application?
What is singleton class and how can we make a class singleton?
What do you mean by boolean?
What is a dynamic array in java?
Is a boolean variable?
What defines function?
What is isa relationship?
Explain about procedural programming language or structured programming language and its features?
What is the difference between procedural and object-oriented programs?
What are the advantages of autoboxing?
What are the restrictions imposed by a Security Manager on Applets?.
What carriage return means?
When is an object subject to garbage collection?