Why do we use public static with the main function in Java?
Answer Posted / shekhar chauhan
public static void main()- firstly, public which r used
globly access this method in our whole progam. and static
basically used for that we can used only one main method in
whole program.we can not create object that class. so we
make static main method.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a boolean field?
How objects are stored in java?
What are facelets templates?
What are different types of arrays?
What are thread safe functions?
What are Normalization Rules? Define Normalization?
What is a vararg?
What are the types of arrays in java?
What is static class
How many threads does a core java have?
Difference between arraylist and hashset in java?
How many tetrahedral voids are there in bcc?
How the interruptible method gets implemented?
How many bytes are there?
What are the limitations of procedural programming approach?