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
How do you use substring in java?
What is number data type?
Is array a class?
What checkbox method allows you to tell if a checkbox is checked?
Give any two differences between C++ and java.
Is 64bit faster than 32 bit?
How to declare objects of a class ?
Explain different types of thread priorities ?
What is string args [] in java?
What is a method vs function?
Why is multiple inheritance not supported in java?
What is array length in java?
How do you replace a string in java?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
Can a method be static?