Why do we use public static with the main function in Java?
Answer Posted / shekhar chauhan
public static void main()- firstly, public which r used
globly access this method in our whole progam. and static
basically used for that we can used only one main method in
whole program.we can not create object that class. so we
make static main method.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which number is denoted by leading zero in java?
What is an empty list in java?
If goto and const is reserve words than why it is not work in java?
What is methodological framework?
Why parsing is done?
Why is java called java?
What are singleton services?
What is numel matlab?
What is pangram in java?
Give us a program to check for parenthesis matching using stack.
How to optimize the javac output?
Does string is thread-safe in java?
how to prepare for IT Officers Interview in Banks
What is meant by main method?
Can a private method of a superclass be declared within a subclass?