Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

63. Static Keyword Example

Getting Started with Java

Woah, wait a second..

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.

Course Cirriculum