Qus:    What are the restrictions that are applied to the Java static methods?
Feb 18, 2022 18:06 Java 1 Answers Views: 1404 Drectole
Prev Next
Answers (1)
JODI LOVE Feb 19, 2021 16:54
Answer:   Two main restrictions are applied to the static methods.
o The static method can not use non-static data member or call the non-static method directly.
o this and super cannot be used in static context as they are non-static.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect