Why do we use public static with the main function in Java?
Answer Posted / sai
public is used so that it can be called easily from outside
the scope of function.Static is used so that it can be
easily called without using its object.
| Is This Answer Correct ? | 37 Yes | 7 No |
Post New Answer View All Answers
What is the difference between access specifiers and access modifiers in java? 16
Does hashset allow duplicates in java?
How garbage collection is done in java?
What is an infinite loop in java? Explain with an example.
What is the difference between stored procedure & function?
Explain when noclassdeffounderror will be raised ?
Can It is possible to synchronize the constructor of a Java Class?
List some important characteristics on jre
How to perform bubble sort in java?
What are wrapper classes in java?
Explain notify() method of object class ?
Compare overloading and overriding?
What is difference between adapter class and listener?
Why is string buffer better than string ?
How to perform binary search in java?