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 singleton math?
What is oops in java?
List two java ide’s?
what is the difference between process and thread? : Java thread
Can a class have multiple superclasses?
What is xslt in java?
what invokes a threads run() method? : Java thread
What happens when heap memory is full?
What is command line argument in java?
Why javac is not recognized?
How to reverse string in java?
Does printwriter create a file?
Can we write any code after throw statement?
What is the SimpleTimeZone class?
What is intern method in java?