in Education by (55.8k points)
What are the restrictions that are applied to the Java static methods?

1 Answer

0 votes
by (55.8k points)

What are the restrictions that are applied to the Java static methods?

Two main restrictions are applied to the static methods.

The static method can not use non-static data member or call the non-static method directly.

this and super cannot be used in static context as they are non-static.

Related questions

0 votes
asked Nov 17, 2020 in Education by Editorial Staff (55.8k points)
...