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
Why we use set in java?
Why for each loop is used?
What is a methodologist?
What is skeleton and stub?
What is the best definition for data?
What does snprintf return?
Can constructor be static or final?
What is the difference between synchronized and synchronized block?
What is a null check?
What is final class?
What is difference between static class and normal class?
Explain public static void main(string args[]) in java.
What does singleton mean in java?
What do bitwise operators do?
How can a gui component handle its own events?