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
How to implement a multithreaded applet?
Can we override a variable in java?
What is files manifesting?
What is get () in java?
What is volatile data type?
Can private members of a base class are inheritable justify?
Can we use this () and super () in a method?
How do you sort arraylist in descending order?
What is the epoch date?
What is charat ()?
What is a parameter used for?
What does int [] mean in java?
What is a final class ?
Can you override a final method?
how does multithreading take place on a computer with a single cpu? : Java thread