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 void a wrapper class?
Explain different ways of creating a thread?
What is the difference between jdk and jre?
what is meant by Garbage collection?
What are the methods used to implement for the key object in the hash map?
According to java operator precedence, which operator is considered to be with highest precedence?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Explain about interthread communication and how it takes place in java?
Why null value is used in string?
What is difference between throw and throws ?
Write a factorial program using recursion in java?
What is a stringbuffer?
Write a program to print all permutations of string?
Why set do not allow duplicates in java?
What is type parameter in java?