what is purpose of writting public static void main(Strind
arg[]) in java..?

Answer Posted / srinivas nallavelli

public-> it must be available to jvm
static-> to use without instantiation
void-> does not return any thing
String[] args -> to take every variable as string
..through cmmand line arguements

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java instanceof operator?

564


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

523


Why does java not allow multiple public classes in a java file ?

3446


What class of exceptions are generated by the java run-time system?

635


What is the difference between abstract classes and interfaces?

513






What is the final class modifier?

561


When will we use them?

597


What is meant by nested loop?

543


java Technical questions asked by JPMC

4573


Why is java architectural neutral?

617


What is a byte array?

587


What does three dots mean in java?

649


What is static data type in java?

544


How do I get 64 bit java?

529


What is difference between string and stringbuffer?

496