The code below throws a NullPointerException
but I don't understand why, the object is not null.
public class A{
int GetValue()
{
return (true ? null : 0);
}
public static void main(String[] args) {
A obj= new A();
obj.GetValue();
}
}