Compiler Error J0032

Unterminated string constant

The compiler did not detect a terminating double-quote character at the end of a string constant. This error usually occurs when the string terminator is accidentally omitted, or when the string constant is mistakenly divided onto multiple lines.

The following example illustrates this error:

public class Simple {
   
   String str = "Hello;
   // error: closing quote omitted
   
}