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


Please Help Members By Posting Answers For Below Questions

How to implement a multithreaded applet?

2422


Can we override a variable in java?

759


What is files manifesting?

1961


What is get () in java?

776


What is volatile data type?

737


Can private members of a base class are inheritable justify?

686


Can we use this () and super () in a method?

727


How do you sort arraylist in descending order?

779


What is the epoch date?

737


What is charat ()?

722


What is a parameter used for?

726


What does int [] mean in java?

763


What is a final class ?

812


Can you override a final method?

787


how does multithreading take place on a computer with a single cpu? : Java thread

908