Programming Languages, Java, Software Development, Software Engineering, Software Architecture.
‘var’ can also be used with primitive literals (int, byte, short, float, boolean, double, and char). There is no big advantage in using it as the names of the primitives are short. However, if you decide to use it, pay attention to the following examples: byte isEnabled = 0; // here is byte var