What will happen if we call a static method through an object variable that is null. Whether it will throw NullPointerException at runtime or it will work fine. Let's explore this with a simple program and find out the actual reason behind the runtime output.