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
Are arrays immutable in java?
Differentiate storage classes on the basis of their scope?
How can the checkbox class be used to create a radio button?
Are static members inherited to sub classes?
What is string english?
What is type parameter in java?
What is boolean keyword in java?
Why do we need hashmap in java?
Why is java called java?
Is arraylist ordered?
What is meant by class?
How is the marker interface used in Java?
what is comparable and comparator interface?
What is sortedmap in java?
Is empty .java file name a valid source file name?