why we write public static void main (String args[])
in core java plz explain briefly??????????????????
Answer Posted / sreenivas p
JVM looks for the main method(from where it starts
execution) with the same signature(public static void
main(String args[])) if it coud not find throws
NoSuchMethodError.
valid signatures are:
public static void man(String args[])
static public void main(String a[])
Invalid signatures
static void main()
public static main(String args[]) etc..[treats these
are all as general methods ]
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What is arraylist e?
What is JVM and is it platform independent?
Does java vector allow null?
Does java trim remove newline?
What is starvation?
What is final class?
Write a code to create a trigger to call a stored procedure
You're given a Boolean 2D matrix, can you find the number of islands?
Explain the access modifiers for a class, method and variables?
What does %d do in java?
What is the symbol for line break?
Give the hierarchy of inputstream and outputstream classes.
How would you format a date in java? I.e. In the ddmmyyy format?
What environment variables do I need to set on my machine in order to be able to run java programs?
What is character in data type?