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
Is set ordered?
Can we serialize singleton class?
Can we declare a class as static?
What is the difference between abstract class and interface1? What is an interface?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What is the purpose of return statement?
What is parsing a sentence?
What is the purpose of main function in java?
Do loops java?
Is a string literal?
What does it mean that a method or field is “static”?
Does collectionutils isempty check for null?
What is java dot?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Can a vector contain heterogenous objects?