what is purpose of writting public static void main(Strind
arg[]) in java..?
Answer Posted / chandrakala
without placing "public",the program cannot be
executed..static is used becoz JVM's first priority will be
always given to static itself..so that without depending on
the object,we must execute the program.void main it used becoz
it wont allow returning any value.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is there a case when finally will not execute?
If an object is garbage collected, can it become reachable again?
Define linked list and its features with signature?
What is a boolean output?
Which sort is best in java?
How a string is stored in memory?
What are the 6 mandatory procedures for iso 9001?
Which data type is a class in java?
Can It is possible to synchronize the constructor of a Java Class?
Can we sort a map in java?
Is singleton class thread safe?
How do you sort in java?
What is the difference between member variables initialization and assignment in a constructor?
How do you implement singleton class?
Can a method be overloaded based on different return type but same argument type?