Why do we use public static with the main function in Java?
Answer Posted / abhijit
public means-accessable from anywhere
static means-the point ,from where compilar can start its
compilation without object.
| Is This Answer Correct ? | 11 Yes | 10 No |
Post New Answer View All Answers
How do you define a method?
What is the difference between the ">>" and " >>>" operators in java?
What is constructor and its types?
Is there any sort function in java?
What is toarray method in java?
Explain a situation where finally block will not be executed?
How do you create an array in java?
What is hashmap in java?
Write a program to print fibonacci series
What is the purpose of assert keyword used in jdk1.4.x?
What is the maximum length of a url?
What does i ++ mean in Java?
How do you clear an arraylist in java?
What is lazy initialization in java?
Which containers use a flowlayout as their default layout in java programming?