Hacker News new | past | comments | ask | show | jobs | submit login

I don't think you can say that java "doesn't use type annotations".



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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: