How to call static method?

Answer Posted / ranganathkini

A static method may be called in 2 ways:

1. Thru the class reference
2. Thru the instance reference of the class

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many threads can I run java?

537


What are controls and their different types in awt?

600


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

660


Why is boolean important?

591


What do you mean by constructor?

546






What are basic data types?

559


Explain aggregation in java?

545


What is meant by main method?

577


What's the difference between an abstract class and interface in java?

557


How we create object in copy constructor?

640


What is the static variable?

571


How do you add an element to an arraylist in java?

484


How to sort double array in java?

585


Can you extend main method in java?

616


How are variables stored?

531