what is static used for code example

Example 1: c# static meaning

In general, static means “associated with the class, not an instance”.
// Search c# static review for more detail

Example 2: static in java

The static keyword in Java is used for memory management mainly. We can apply static keyword with
variables, methods, blocks and nested classes. The static keyword belongs to the class 
  than an instance of the class.

The static can be:

Variable (also known as a class variable)
Method (also known as a class method)
Block
Nested class

Tags:

Java Example