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 are the differences between getting and load method?
What happens if an exception is throws from an object's destructor?
Is java type safe?
Write a program to find maximum and minimum number in array?
What are wrapper classes in java?
Can anonymous class have constructor?
What is the main functionality of the remote reference layer?
difference between byte stream class and character stream class?
What is procedure writing?
Does java linked list allow duplicates?
What is number data type?
What is are packages?
What is hash code collision?
What is foreach loop in java?
How does linkedlist work in java?