What is the use of static keyword in "public static void
main()"
Answer Posted / sadikhasan palsaniya
static method can call without using Object name and can
call using Class name so JVM can use main method for execute it.
so it is require static keyword in main method. without
static JVM cant run Program.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is the multi-catch block in java?
How to sort list of list in java?
What are the methods of object class ?
What is a generic data type?
Can a class be private?
Why is java so important?
What is encapsulation in java?
Can we make main() thread as daemon?
What are the two types of streams offered by java 8?
What is broken and continue statement?
Can we extend immutable class?
When super keyword is used?
What is the technique adopted to create an immutable class?
What are the important features of Java 8 release?