Every expression written in the Java programming language has a type that can be deduced from the structure of the expression and the types of the literals, ...
docs.oracle.com