Tuesday, May 13, 2014

Restrictions for static method

Leave a Comment
There are two main restrictions for the static method. They are:
  1. The static method can not use non static data member or call non-static method directly.
  2. this and super cannot be used in static context.

0 comments:

Post a Comment