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 an object in java and how is it created?
Is string a wrapper class?
Can we override a variable in java?
What is fail fast in java?
What is the difference between jdk, jre, and jvm?
What is the base class of all exception classes?
What are heap memory and stack memory and what are memory tables.
How to perform linear search in java?
What is the set interface in java programming?
How to invoke external process in java.
Why java does not support pointers?
please send me hr interview questions in it industry
Is it possible for a yielded thread to get chance for its execution again?
Who developed java?
Explain about transient variables in java?