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


Please Help Members By Posting Answers For Below Questions

Why static functions are used?

563


What does 0 mean in boolean?

537


How many types of classes are there in java?

513


What is the purpose of javac exe?

555


Can memory leak happen java?

592






What is default size of arraylist in java?

553


What is final, finally, finalize?

593


What are access specifiers in java ?

588


Difference between final and effectively final ? Why is effectively final even required ?

548


what is optional in java 8?

549


What is the use of singleton?

506


What is internal variable?

535


What is backdrop?

592


What do you understand by the bean persistent property?

549


Who developed java?

563