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
When a byte datatype is used?
How can we make copy of a java object?
What is the main purpose of serialization in java?
What is methods and methodology?
What is methodological framework?
What do you mean by ternary operator in java?
What isan abstract class and when do you use it?
What is string immutability?
Explain different types of wrapper classes in java?
What is bufferedwriter?
What is the difference between jvm and jre? What is an interface?
What is the difference between notify and notifyall method?
What is core java used for?
What are synchronized methods ?
Implement a stack with push (), pop() and min() in O(1) time.