In Java why we write public static void main(String args[])
why not main()?
Answer Posted / sumalatha
yes in every progrm in jave the main is static.because when
the program will start ,thit means runnig then the main is
also one method it was called first that means without
instans creations the main is called.thet is the reason we
are put as main is static method(static is used for without
instance creat u call it).void means it does not reaturn
any value
| Is This Answer Correct ? | 148 Yes | 43 No |
Post New Answer View All Answers
How to create a fecelet view?
Why enumeration is faster than iterator?
Explain how hashmap works?
What is the use of toarray () in java?
What is sorting in java?
What is the difference between stream and buffer?
Why we use set in java?
What is t in parametric equations?
What is the difference in between cpp and java? Can u explain in detail?
What do you understand by soft reference?
How do you calculate square roots?
Can we extend immutable class?
What is sortedset in java?
What is oops in java?
How do you classify Dialog Box?