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
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Explain the difference between association, aggregation and inheritance relationships.
What is the difference between Array and Hash Table?
Why is the main method static?
How will you add panel to a frame?
Is there any tag in htm to upload and download files?
What is a copy constructor in java?
How to sort elements in a parallel array in java?
why java uses class level type casting ?
What was java originally called?
What is string intern in java?
How do you input a string in java?
Can we declare a class as abstract without having any abstract method?
Is a class subclass of itself?
Can sleep() method causes another thread to sleep?