I just recently upgraded my local JDK to Java 11. I see java 9 got upgraded with some static methods in List/Map class -> of().
question is why do we need overloaded methods? We have at least 6/7 methods and one of them takes in var-args which will work for 2,3,4 any number of entries for which Java has defined overloaded methods?
Any particular reason behind this?
Thanks.