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 continuity of a function?
What is the use of http-tunneling in rmi?
Why is it called boolean?
Can a static class implement an interface?
How does predicate work in java?
Difference between error and exception
What is the difference between java applets and applications?
what is a working thread? : Java thread
What are byte codes?
Can a class be a super class and a sub-class at the same time? Give example.
Why for each loop is used?
Can we convert integer to string in java?
What does main method?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What is integer size in java?