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
Why static functions are used?
What does 0 mean in boolean?
How many types of classes are there in java?
What is the purpose of javac exe?
Can memory leak happen java?
What is default size of arraylist in java?
What is final, finally, finalize?
What are access specifiers in java ?
Difference between final and effectively final ? Why is effectively final even required ?
what is optional in java 8?
What is the use of singleton?
What is internal variable?
What is backdrop?
What do you understand by the bean persistent property?
Who developed java?