Why do we use public static with the main function in Java?
Answer Posted / rameshreddy.k
As we know public means we can access the method from
anywhere. in a java we want call method by using class
object. But main() is also method .that main() is there one
class but jVM execute program trough main() method with out
creating object main() method call thats way we use public
static the main function
thanks& regargs
RAMESH
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Differences between traditional programming language and object oriented programming language?
What is a nested list?
Explain java coding standards for variables ?
What is the access scope of protected access specifier?
What is the final class?
What is the numeric promotion?
Is space a character in java?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
Explain about join() method?
What is an escape character in java?
Why a dead thread occurs?
Is string thread safe in java?
How to declare an arraylist in java?
a thread is runnable, how does that work? : Java thread