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
What are the principle concepts of oops?
Can we declare the static variables and methods in an abstract class?
What invokes a thread's run() method in java programming?
Can finally block be used without a catch?
What are daemon Threads in java?
What is join () in java?
What's a method in programming?
Which is better singleton or static class?
What is compareto?
What is a file pointer?
Which browsers work with java?
What are the different data types in java?
How do you test a method for an exception using junit?
What do you understand by weak reference?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.