September 2019
Intermediate to advanced
816 pages
18h 47m
English
As a rule of thumb, LVTI cannot be used as a return method type or as an argument method type; instead, variables of the var type can be passed as method arguments or store a return method. Let's iterate these statements via several examples:
// Does not compilepublic var fetchReport(Player player, Date timestamp) { return new Report();}
public Report fetchReport(var player, var timestamp) { return new Report();}