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
What are the different ways to handle exceptions?
How do you check if a character in a string is a digit or letter?
What is the difference between conversation & casting?
Why do we need wrapper classes?
What is bufferedwriter?
What do you mean by exception handling in Java?
How will you get the platform dependent values like line separator, path separator, etc., ?
What is a final class in java?
What is the difference between logical data independence and physical data independence?
What is final?
Why we used vector class?
What is the maximum size of byte array in java?
Can we use different return types for methods when overridden?
How do I get a substring?
When should the method invokelater() be used?