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
Enlist few advantages of inheritance?
How is java hashmap implemented?
Which is bigger float or double?
What is the old name of java?
How does hashset works in java?
What is the main purpose of serialization in java?
Differentiate between vector and array list.
How do you ensure that n threads can access n resources without deadlock?
What is flush () in java?
How do I remove a character from a string in java?
Explain importance of inheritance in java?
Explain about automatic type conversion in java?
What is the largest data type in java?
What is a native method in java programming?
Which sorting algorithm is in place?