Need to use public,static keywords in main function?
Answer Posted / sreedhar
yes,need two thing, javac execution start with main
method,that method declars the private,protected not access
the out side class.
Staic block is execute the first part of the progream ,u
need to mention the Staic on thet main method.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the return type of the main method?
Is array an object in java?
What is the difference between method and means?
Is singleton a bad practice?
Explain the selection sort algorithm and state its time complexity?
Explain about varargs in java?
What is a map in java?
What is a treeset class?
Can we have try block without catch block?
Is class is a data type?
How would you use Bubble Sort to sort the number of elements?
Is special character in java?
What is t type java?
How many types of interfaces are there?
How are variables stored in memory?