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

How does indexof work?

740


Why does abstract class have constructor?

777


Define nashorn in java8.

815


How to display all the prime numbers between 1 and 100

732


what is bmg file and how to create that files?what will it contailn?

2158


What is the different between get and post?

744


What is the meaning of course?

854


What restrictions are placed on method overloading in java programming?

794


Is null function in java?

801


What is consumer interface?

773


What does flag mean in java?

757


Which of the following classes will have more memory allocated?

805


What is a java developer salary?

761


Is zero a positive integer?

792


What are methods?

794