In Java why we write public static void main(String args[])
why not main()?
Answer Posted / ravi
static because once the class is loaded the main() will be
invoked first.
void because main()is not returning any value.
Is This Answer Correct ? | 228 Yes | 99 No |
Post New Answer View All Answers
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
placement papaers of spring computing technology
What is the purpose of the finalize() method?
What are operators and its types?
What is main string [] args?
What is float in java?
What is the difference between a scrollbar and a scrollpane?
How to solve the problem of generating the unique hash keys with hash function?
What is the difference between serializable and externalizable interface?
How many unicode characters are there?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is difference between final and immutable?
What are the differences between abstract class and interface?
Is 0 an irrational number?
What are the differences between this and super keyword?