Header Ads

  • Breaking Now

    Is it necessary to declare something that is private,a static as well as this practice is common in an inner class?

    The answer to this question is 'No'. Something(a variable/class/method) is declared static when there is just one copy of the same is required per class/JVM and not multiple copies dependent on objects of the class.In case of inner classes you can get more details on Java Language Specifications website available here.

    Post Top Ad

    Post Bottom Ad