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
Is 0 an even number?
Tell me about your ability to work under pressure
What is xslt in java?
Define reflection.
What are the advantages of compiled language?
What is strings in java?
Where are variables stored?
How to create an immutable class?
Can we have multiple classes in a single file?
Compare java and python.
Does anyone still use java?
Describe method overriding
Which of the following is not an isolation level in the JDBC
What is increment in java?
Explain the private protected method modifier?