/* K01 - static theory */
public class O01 {
}
/*
can be used for counting the number of object created
The count variable is for class.
The static variable can be used to refer to the common property or
value for all objects, for example, company name of employees,
college name of students, etc.
1. static m/T belogs to the class not object
2. used for memory management
1. "static" methods belongs to the class, not to the object.
2. A "static" method can be accessed directly by class name and does'nt need any object.
3. A "static" method can access only static data. It cannot access non-static data (instance data).
4. A "static" method can call only other static methods and cannot call a non-static method.
5. A "static" method cannot refer to "this" or "super" keyword in anyway.
// 1. can print hello without main method in static block upto version 1.6 java
1. static block is executed at class loading, hence at the time of class loading if we want to
perform any activity, we have to define that inside static block.
2. static block is used to initialize the static members
*/