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
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What are the main concepts of oops in java?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What are adapter classes?
Is java a compiler?
What are the ways in which a thread can enter the waiting state?
What is the difference between abstraction and encapsulation?
Explain static nested classes ?
Which methods cannot be overridden in java?
Write a method that will remove given character from the string?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What are different data structures in java?
What are the 4 types of characters?
What is the difference between JDK and JVM?
What is type parameter in java?