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
Can we have multiple catch block for a try block?
How many digits can a float hold?
Why java is not 100% object-oriented?
What is javac used for?
Can you explain the usages of class.forname()?
Why java is a platform independent? Explain
What is the relationship between clipping and repainting under awt?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
Can a class be defined inside an interface?
What are keywords in java?
What is return type in java?
What will happen to the exception object after exception handling?
What are the different ways of implementing thread? Which one is more advantageous?
Can we have two methods in a class with the same name?
What do you mean by global variable?