Integer Literals: Integer literals are the most commonly used literals in a Java program. Any whole number value is an example of an integer literal. For example, 1, 10, 8343 are all decimal values i.e., of base 10. Java also supports other types of integer literals like values of base 8 (octal values) and base 16 (hexadecimal values). An octal value contains numbers within the range 0 to 7. Octal literals in Java are preceded by a zero (0). So, to represent an octal 6 in Java, we should write 06. An hexadecimal value contains numbers within the range 0 to 15 in
The post What are the complete set of literals in java appeared first on Coding Security.
What are the complete set of literals in java
read more
Tidak ada komentar:
Posting Komentar