Java Tricky Program 8 - null with static method

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

but why" a" changed to "A"? whats the reason behind that?

srinivaaas