Need to use public,static keywords in main function?
Answer Posted / aravinda reddy
1) Public access modifier specifies class declared can be
accesses from anywhere
2) where as static refers with out creating instance of the
class JVM should access the main class while executing.
3) void specified main function should not return any value
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is OOP's Terms with explanation?
what is inner class in java?
What are the fileinputstream and fileoutputstream?
How is abstraction implemented in java ?
How many types of parsers are there?
What are peerless components?
What does compareto () do in java?
How do I get 64 bit java?
What is a void in java?
why an outer class cannot be declared as private?
What is meant by vector class, dictionary class, hash table class, and property class?
Explain about core java?
Program to Find the second largest element in an array.
Difference between this() and super() ?
How can you say java is object oriented?