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
Can we override protected method in java?
What does %4d mean in java?
Is null false in java?
Can I extend singleton class in java?
What is meant by call by reference?
Which language is java?
What is currentthread()?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What are the types of web technologies?
What is the difference between keyword and identifier?
Which class represents the socket that both the client and server use to communicate with each other?
Give some features of interface?
Which sorting is best in java?
What is constructor and its types?
What is the Difference between Final Class && Abstract Class?