why java main method is given as static method?

Answer Posted / chaithanya

main method is called by JVM.without creating the object we are calling main.that's what it is declared Static.
static nothing but without creating the object,we can call that method

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pattern what is an anti pattern?

722


What is the driver class?

771


What are the main differences between notify and notifyAll in Java?

854


Write a program to reverse array in place?

805


What is a map in java?

777


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

2032


What do you mean by pointer value and address?

801


How is hashcode calculated in java?

732


What is the difference between the font and fontmetrics classes in java programming?

721


List implementations of list interface?

808


What is functional interface in java?

783


What is functional interface in java example?

777


What is callable java?

754


Why are pointers not secure?

798


What is a native method in java programming?

771