Hi All,
To make myself clear about java.lang.NullPointer exception I want to know it is thrown:
1. When we assign null to some object reference. And then we invoke some member method on that object. Like
String str = null;
str.concat("123");
The toString() method is an exception in this case. Pls. correct me if I am wrong. And pls. if someone can explain in more detail that under what else conditions it is thrown.
Regards
Muhammad Ali