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
Write a java program to count the number of words present in a string?
Difference between ‘>>’ and ‘>>>’ operators in java?
Difference between concurrent hashmap and hashtable and collections
What is the difference between form & report?
Can we define private and protected modifiers for variables in interfaces?
What are inner classes or non static nested classes in java?
Can we extend singleton class?
Can an abstract class be a final class?
how to run ecllipse with jettyserver for windows environment using batch file
What are the steps involved to create a bean?
How do you call a reference in java?
How do you bind variables?
Explain how can you debug the Java code?
Explain different states of a thread in java?
Give a practical example of singleton class usage?