Recipe catalogJavaModernizejava.lang APIsVarOn this pageVar Recipes Apply var to Generic Constructors Apply var to generic method invocations Use var for primitive-typed variables Use var for reference-typed variables