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
What is a nullable field?
What is the indent key?
What are the high-level thread states in java programming?
placement papaers of spring computing technology
Where is singleton pattern used?
Can we override singleton class?
What is the use of isempty in java?
Which is faster call by value or call by reference?
What is native method in java?
Can an interface implement another interface?
What is the use of static methods?
What is ph and buffers?
What is stringreader?
How do you override a variable in java?
Explain about interrupt() method of thread class ?