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

Is a class subclass of itself?

596


how we can create packages in java?

511


What is a ternary operator in java? What is an interface?

544


What is a Presistent Object?

634


What is the difference between path and classpath variables?

518






What is early binding and late binding in java?

589


Why do people says “java is robust”?

544


Explain different states of a thread in java?

573


Why should we use singleton pattern instead of static class?

454


What is the basic of java?

563


Why arraylist is used in java?

541


Explain the use of volatile field modifier?

626


Explain the importance of throwable class and its methods?

563


How to compare two strings in java program?

667


How do I start learning java?

552