In Java why we write public static void main(String args[])
why not main()?
Answer Posted / lotus
as compiler needs to enter inside a program to compile so
public is used and static is used to help the main method
to be invoked without an object.
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What is a substring of a string?
Why do we need hashset in java?
Explain list interface?
Define linked list and its features with signature?
Can a class extend 2 classes in java?
What is a treemap in java?
What is java volatile?
What is the concept of multithreading?
What is the default size of load factor in hashing based collection?
Mention the default values of all the elements of an array defined as an instance variable.
Can we declare an interface as final?
What is abstract class? Explain
What are the difference between composition and inheritance in java?
Does java arraylist maintain insertion order?
What is hashing principle in java?