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
Name few java 8 annotations ?
How do you bind variables?
Can a class be defined inside an interface?
What is the list interface?
Can we override the overloaded method?
What is the difference between access specifiers and access modifiers in java? 16
What do you mean by object?
What does serializing data mean?
What are the differences between string, stringbuffer and stringbuilder?
What is the difference between procedural and object-oriented programs?
What is method with example?
why java uses class level type casting ?
What are the Main functions of Java?
What lambda means?
What is the difference between method and means?