Getting Started with Java
This is a 100% free course, but we need you to first join or login to watch this video.Alright, join or login here.
This video shows an example of static keyword in Java. The static keyword can be used to create variables, blocks, imports, methods and nested classes. First, you will explore the Math class source code to see what is static in there and how to use it in a more efficient manner using static imports. Then you will learn the difference between static and normal variables and how static methods cannot access non static variables. Finally you will understand how a static block is used in Java.