Why do we use public static with the main function in Java?
Answer Posted / manya
main function is used for two purposes:-1)when you have to
write a recursion code.2)to use command line arguments
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are 3 data types?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What do you mean by inner class in java?
What does 3 dots mean in java?
How dead lock situation occurs in java and how you can identify it?
What java is used for?
What do you mean by platform independence?
What is an class?
Are arrays primitive data types?
What state is a thread in when it is executing?
Explain the advantages of packages in java?
What is reverse function?
What is the benefit of inner classes in java?
What are the two types of java?
Explain the difference between jdk, jre, and jvm?