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
What is java reflection?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is a method in programming?
Can we cast any other type to boolean type with type casting?
What is the default size of arraylist in java?
What is composition in java?
What are the disadvantages of object oriented programming?
What is the latest version of java?
What package is math in java?
Why are functions called methods in java?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
When the constructor of a class is invoked?
What are three ways in which a thread can enter the waiting state in java programming?
Where are local variables stored?
Why unicode is important?