Final answer:
The statement is false, as Java has literal representations for several types such as integers, floating-point numbers, booleans, characters, and class literals beyond just strings.
Step-by-step explanation:
The statement that strings are the only objects in Java that have a literal representation is false. In Java, besides strings, there are literal representations for primitives like integers, floating-point numbers, booleans, and characters. For example, you can write an integer literal as 100, a floating-point literal as 10.5, a boolean literal as true or false, and a character literal enclosed in single quotes as 'a'. There are also class literals, such as String.class, and null literal which is simply null. These literal representations make it easier to assign values to variables or pass them as arguments directly in the code.