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

Answer Posted / sudhir

static is a keyword which indicate that method is call with
the class name.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

697


Is null function in java?

562


What are the differences between Java 1.0 and Java 2.0?

1672


What about anonymous inner classes in java?

559


Can a variable be local and static at the same time?

540






Can a source file contain more than one class declaration?

508


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

608


Write a function to find out longest palindrome in a given string?

584


Is java 1.7 the same as java 7?

530


What is port number in java?

585


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

611


Can we create our own wrapper class in java?

539


What do you mean by compiler?

578


What is final keyword?

637


How do you escape a string?

501