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
What is a line break?
Difference between final and effectively final ? Why is effectively final even required ?
What must a class do to implement an interface in java programming?
What is the purpose of interface?
What is string array?
Is java a super set of javascript?
Is hashmap thread safe?
What are different types of multitasking?
Are true and false keywords?
What is core java called?
What is bifunction in java?
What are the advantages and disadvantages of reference counting in garbage collection?
What is a null check?
Is vector thread safe in java?
Which method returns the length of a string?