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
How do you start a new line in java?
Why put method is idempotent?
Where is singleton pattern used?
What are the actions that can occur when a thread enters blocked state?
What is visibility mode?
What are the concepts of 'OOPS'?
Tell me the Importent classes in net package?
What does the “static” keyword mean?
What is the differences between c++ and java? Explain
What is java objectoutputstream?
How do weakhashmap works?
How does varargs work in java?
Can an integer be null java?
Explain differences between checked and unchecked exceptions in java?
What is the map interface in java programming?