Need to use public,static keywords in main function?
Answer Posted / suresh
Main method is called by jvm...
jvm is out side the class
so main method must be pulic
then only jvm can access.
No instance of the class is needed to
execute the static method.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is meant by anonymous class?
What is t in generics in java?
What is java reflection?
How to obtain a performance profile of java program
What is the set interface in java programming?
What is thread life cycle in java?
What is append function?
How to instantiate member inner class?
Which collections are thread safe in java?
What is static import?
What is java in layman terms?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
Can we use a switch statement with strings?
How do you input a string in java?
Difference between final and effectively final ?