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 mean by collections in java?
Why stringbuilder is not thread safe in java?
What modifiers are allowed for methods in an interface?
What is object of class in java?
What is the difference between pass by reference and pass by pointer?
What is a predicate method?
What is lambda programming?
Where are the card layouts used?
Can there be an abstract method without an abstract class?
Which types of exceptions are caught at compile time?
How many types of java are there?
What do you understand by classes in java?
Where is jre installed?
What is difference between equal and == in java?
What is a percentage sign called?