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 does mean in regex?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What are the differences between c++ and java?
What is identifier with example?
What exactly is methodology?
What are the classes of java?
What is operator overloading. Is it is supported in java?
Why do we use predicate in java?
What is queue in java?
How to obtain a performance profile of java program
Is java hashset ordered?
When is the finalize() called?
Why is stringbuffer faster than string?
What is java in simple terms?
How many types of classes are there in java?