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
Can an integer be null java?
Difference between this() and super() ?
What is difference between class and object in java?
What is the Difference between Final Class && Abstract Class?
What is main function purpose?
What are the object and class classes used for?
What is backdrop?
What is difference between throw and throws ?
State the difference between strings and arrays.
What is meant by the value of a variable?
Can singleton class be serialized?
How many bits are in a sentence?
How will you invoke any external process in java?
Explain about serializable interface in java?
Is java code slower than native code?