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

Answer Posted / subha, bijji

a static is a method that is called with out using object.
we can call a static method is like classname.method name.
it is very usefuul in public static void main()

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you compare characters in java?

744


Explain about strings in java?

844


What is null statement?

786


Tell me a few examples of final classes defined in Java API?

799


Explain what are final variable in java?

816


What is object-oriented paradigm?

856


What is the properties class in java programming?

767


What is a JAR file?

819


What is __ init __ functions?

811


What is the purpose of assert keyword used in jdk1.4.x?

777


Define max and min heap, also the search time of heap.

840


What is thread synchronization in java?

678


What is mvc in java?

807


What sorting algorithm does javascript use?

771


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

825