In Java why we write public static void main(String args[])
why not main()?
Answer Posted / praveen
PUBLIC: in this we should access the function inside d class
or outside d class
STATIC:if any method is invoking obj is must.but using
static no obj is necessary.
VOID: void means nothig.in main method we should not declare
any value. so void is return type.
STRING[]ARGS:in java every input consider as a string
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is arrays sort in java?
Java is Pass by Value or Pass by Reference?
Why we cannot override static method?
Name component subclasses that support painting in java programming?
What is the purpose of final keyword and when to use it?
What is defined as false sharing in the context of multithreading?
what is meant by Byte code concept in Java?
What is the difference between checked exception and unchecked exception?
What is the difference between the ">>" and " >>>" operators in java?
Can you make a constructor final?
How many digits is int32?
Why Java doesn’t support multiple inheritance?
What an i/o filter?
What is garbage collection? Can it be forced to run?
How java enabled high performance?