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
How we can generate random numbers in java?
What is java in detail?
Which sorting is used in arrays sort in java?
Is char * a string?
Why convert an applet to an application?
What is a boolean flag in java?
What is the advantage of OOP in java?
Can you start a thread twice in Java?
What are the four integer types supported by java?
How do you bind variables?
Name four container classes.
What is object-oriented paradigm?
What is the difference between this() and super() in java?
What is difference between variable declaration and definition?
What is a class component?