In Java why we write public static void main(String args[])
why not main()?
Answer Posted / kanchan bangar
becoz in java programs execution is starts from main method
and static method is for the first preference
method.ppublic is for the global scope to all over the
progarms..............
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Give me example of derived data types.
What is a java list?
What is the difference between hashmap and hashtable in java?
What is the reflection?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What is array pointers ?
What are the object and class classes used for?
What methods are used to get and set the text label displayed by a button object?
What are the different types of inner classes?
Why is a string immutable?
What are the loops in java?
What does string mean in java?
Why does java doesnt suuport unsigned values?
Is java an open source?
What is use of super keyword in java?