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 the point of java?

796


How to call one constructor from the other constructor ?

820


What is the purpose of format function?

867


Is integer passed by reference in java?

788


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

756


What is the size of integer?

848


How do you format in java?

787


What are the different http methods?

747


How do you convert bytes to character in java?

749


Which sort is best in java?

748


Java.util.regex consists of which classes?

785


Can we override private method?

829


What are the different types of collections in java?

747


What is an example of character?

804


Difference between throw and throws?

883