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 are the disadvantages of indexes in oracle?
How many bytes is a string?
What does three dots mean in java?
What is the difference between JDK and JVM?
Explain creating threads by implementing runnable class?
Should a main method be compulsorily declared in all java classes?
How do you sort data in java?
What is the definition of tree ?
Explain the features of java?
What is the difference between overriding and overloading in OOPS.
State differences between C and Java?
What are the different access modifiers available in java?
What is a nested structure?
Why put method is idempotent?
Can we define static methods inside interface?