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
What is the point of java?
How to call one constructor from the other constructor ?
What is the purpose of format function?
Is integer passed by reference in java?
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?
What is the size of integer?
How do you format in java?
What are the different http methods?
How do you convert bytes to character in java?
Which sort is best in java?
Java.util.regex consists of which classes?
Can we override private method?
What are the different types of collections in java?
What is an example of character?
Difference between throw and throws?