Hacker News new | ask | show | jobs
by lvh 2809 days 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).

1 comments

Well in my ideal word nulls are not part of Integers or Floats or BeanFactory.