In Java Programming, Static Keyword is mainly used for memory management. The static keyword can be applicable for blocks, nested classes, variables, blocks, and methods. This keyword acts as a reference variable and is mainly used to refer to current objects (state and behavior).
Topics Covered in this module are:
- Use of static keyword in Java Programming
- Use of this keyword in Java Programming
- How to refer to a class instance variable using this keyword.
- Invoking the current class constructor
- Examples of Static and This keyword
Learning Outcome: By the end of this module, you will be in a position to make use of static and this keyword in Java Programming. You will also notice the changes in the Java program after applying those keywords.