3 ms·
> In this sense Java is actually dynamically typed: there's no way of knowing at compile time whether an object is actually an instance of that object or is nul
by lvh 8y ago
> In this sense Java is actually dynamically typed: there's no way of knowing at compile time whether an object is actually an instance of that object or is null.
That is an extremely unusual definition of dynamic typing. If I have an Integer it might be null but it won’t be a BeanFactory (unless someone did a reflective call or wrote some bytecode or otherwise subverted the type checker).
- StreamBright 8y agoWell in my ideal word nulls are not part of Integers or Floats or BeanFactory.