Why do we use public static with the main function in Java?
Answer Posted / sai
public is used so that it can be called easily from outside
the scope of function.Static is used so that it can be
easily called without using its object.
| Is This Answer Correct ? | 37 Yes | 7 No |
Post New Answer View All Answers
Which graphs are functions?
What is the private method modifier?
What is member in java?
Can we clone singleton object in java?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Why does java have two ways to create child threads? Which way is better?
What is nested loop? What is dangling else condition in it?
What is the maximum size of array in java?
Define an abstract class with reference to java.
Can you explain inner class.
What are some alternatives to inheritance?
What is data type example?
Write a code to create a trigger to call a stored procedure
Does apple use java?
What is variable length arguments in java?