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 is integer valueof?
What is double data type?
how to split string in java?
What is a null class?
What is an example of a boolean?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
I want to persist data of objects for later use. What is the best approach to do so?
What is string pooling concept?
How many types of array are there?
What is nested loop? What is dangling else condition in it?
How does split work in java?
State the merge-sort principle and its time complexity.
What is the use of math abs in java?
What is the purpose of the return statement?
How many bytes is string in java?