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 is a memory leak in java?
Can variables be used in java without initialization?
What is regex used for?
What do you mean by chromounits in java8?
Why main() method is public, static and void in java ?
What are the differences between the constructors and methods?
How many types of methods are there?
How do you decide when to use arraylist and linkedlist?
What is singleton class in java and how can we make a class singleton?
How many decimal places is a double?
What is the advantage of functional interface in java 8?
In which order the iterator iterates over collection?
Is minecraft 1.15 out?
what is meant by Byte code concept in Java?
What is the base class in java from which all classes are derived?