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
Explain garbage collection in java?
what are abstract functions?
Why java uses the concept of the string literal?
What is the use of toarray () in java?
How is hashset defined in java?
What access modifiers can be used for variables?
How to create com object in Java?
How big is a boolean?
What are the 2 types of java programs?
Where is jre installed?
What are java packages? What is the significance of packages?
What is difference overloading and overriding?
What is a ternary operator in java?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1