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
How many types of string data types are there?
how to create multithreaded program? Explain different ways of using thread? : Java thread
What is number data type?
what is synchronization? : Java thread
What is the purpose of final keyword and when to use it?
What is data type modifier?
Can we compare two strings in java?
What is the difference between JDBC 1.0 and JDBC 2.0?
What is difference between add() and addelement() in vector?
please send me hr interview questions in it industry
How many static init can you have?
What does business logic mean?
what is the volatile modifier for? : Java thread
Can we clone singleton object in java?
What is command line used for?