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 the benefit of abstract class?
What is the purpose of encapsulation?
What about interthread communication and how it takes place in java?
What is integers and example?
When should the method invokelater() be used?
Do you know how to reverse string in java?
What is use of map in java?
Can you achieve runtime polymorphism by data members?
What is the major advantage of external iteration over internal iteration?
What is a “stateless” protocol ?
How do you start a thread?
How can you handle java exceptions?
What is abstract class? Explain
Which is better 64 bit or 32 bit?
What does three dots mean in java?