3 ms·
Yes but val map = GetMap(); does not.
by MatthewPhillips 15y ago
Yes but
val map = GetMap();
does not.
- AndrewDucker 15y agoIt does when you can hover your cursor over GetMap() and see the exact specification for it.
- samirahmed 15y agoAs the programmer, you wouldn't call getMap if you didn't know the return type As the reader, this situation would be analogous to looking up the what map is, assuming it was declared earlier ... is a datamember etc. something that might as well arise when typing.. private HashMap<Integer, String> map ; then 30 lines later this.map = getMap(); You would have to check javadocs or function header some time