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 java doesn’t support multiple inheritances?
Discuss about garbage collector in Java.
Which is bigger float or double java?
What is the use of hashmap in java?
What is the final keyword in java?
Why do we create public static method in java?
What is the need of transient variables in Java ?
Are there structures in java?
what is use of functional interface in java 8?
What are latest features introduced with java 8?
Can we write class inside a class in java?
What is stack class in java?
Write a program to calculate factorial in java?
What is the difference between I ++ and ++ I in java?
Is null a string in java?