Accessing attributes on literals work on all types, but not `int`; why?

types of integer literals in java
which type of literal is written in pair of single quote
types of literals in java
primitive literals in java
double data type
java primitive types
scala literals
integer literal java