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

What is final, finally, finalize?

613


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

693


Which collection is ordered in java?

550


What is the main purpose of serialization in java?

538


How do you escape json?

548






What is an enumeration?

576


What is the difference between conversation & casting?

586


Can list have duplicates in java?

537


What does exclamation mean in java?

583


What is the purpose of javac exe?

571


When the constructor of a class is invoked?

603


What are decalarations?

650


How many types of gc are there in java?

580


What is the purpose of a parameter?

539


What happens when you add a double value to a string?

559