what is purpose of writting public static void main(Strind
arg[]) in java..?
Answer Posted / sahithi
Main method is entry point of our program.It is the method
executed when we run java program.
The method is "public" becozit should be accesible to jvm
to begin execution of program.
It is "static" becoz it should be available for execution
without an object instance..
String args[] are used to signify that user may pass
parameters to java prgm in commandline
Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
If two threads have same priority which thread will be executed first ?
Which is better stringbuilder or stringbuffer?
What is local class in java?
Can we overload the main() method?
Define locale.
Can we override the overloaded method?
What are mutable classes?
What is the difference between a switch statement and an if statement?
How do you declare a destructor in java?
What is the difference between @before and @beforeclass annotation?
Where is core java used?
Write a program to reverse a number in java?
How are destructors defined in java?
Which language is java?
Can a class have multiple superclasses?