Literals in Java
Literals(often referred to as constants) are data items that are fixed data values. Java allows several kinds of literal: integer-literal floating-literal boolean-literal character-literal string-literal null-literal Integer Literal: Integer Literals are whole numbers without any fractional part. The method of writing integer constants has been specified in the following rule: An integer constant must have at […]
April 21, 2022 | Java | No comments