Hacker News new | ask | show | jobs
by AnimalMuppet 1131 days ago
I don't think you can say that java "doesn't use type annotations".
1 comments

Well, technically you do have the var keyword now.

  var x = MyAwesomeClassFactoryBeanTemplate.getBean().getFactoryInstance().createNewMyAwesomeClass(foo, bar);
I am not super familiar with Java but that syntax typically implies type inference, which is not the same as not needing type annotations.
Not only is it type inference, it's limited to locally declared variables.