What are the limitations for static method?
Answer Posted / vijayakumar chinnasamy
Static Method:
a. Access only static type data (static type instance
variable).
b. Call only static method ,if non-static then compile
time error.
c.No need the class object to call the static method.
d.Cant use this and super keyword otherwise compile time
error.
Is This Answer Correct ? | 50 Yes | 4 No |
Post New Answer View All Answers
What is final, finally, finalize?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Which collection is ordered in java?
What is the main purpose of serialization in java?
How do you escape json?
What is an enumeration?
What is the difference between conversation & casting?
Can list have duplicates in java?
What does exclamation mean in java?
What is the purpose of javac exe?
When the constructor of a class is invoked?
What are decalarations?
How many types of gc are there in java?
What is the purpose of a parameter?
What happens when you add a double value to a string?