What is the use of static keyword in "public static void
main()"

Answer Posted / praveen

static is method that can be called and executed without
using obect

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which java collection does not allow null?

922


What is the best definition for data?

740


What is the purpose of sizeof operator?

771


Why collection doesn’t extend cloneable and serializable interfaces?

896


Write a program to show whether a graph is a tree or not using adjacency matrix.

867


What is a static class in java?

767


What is the largest data type in java?

747


How many threads can I run java?

812


What does it mean that a method or field is “static”?

742


What is difference between calling start() and run() method of thread?

790


What is the order of arraylist in java?

849


What is qms certification?

735


Is a method a function?

819


What are the object and class classes used for?

809


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

790