Java Application Contexts | Core Java Tutorials

This Core Java Tutorials “Java application Contexts” post explains what is static context and what is non static context in java application and how to access static and non static members in java application.


Java Application :

  • Every java application is mainly having 2 contexts:
    1. Static context (free accessible area)
    2. Non-static context ( restricted access/permissions required)


General example:

  • Generally static context of Object we can access directly.
  • Freely accessible area must be defined as static in java
  • Specific functionality of object must be declared as non-static.
  • Permissions are required to access non-static area.
  • Mostly permissions are available to access non-static area in static only.


Following example describes contexts diagrammatically :



Technical example: The following example represents the technical way, how we are defining and access members of static and non-static.

Share this