The highlighting for Java is using the C lexer as there is no Java lexer available.
C only knows about strings between pairs of `""` _on the same line_ so line 2 is valid C containing three empty strings and the `()`s are outside strings. On line 4 there is an empty string and an invalid string opened by `"` and ending at the end of the line. On line 5 again there is an empty string and an invalid string opened by `"` and ending at the end of the line and including the `);` as part of the string and so the `)` on line 5 is part of a string and so not seen as a matching close parentheses for the `(` on line 4.
Unless "somebody" contributes to the highlighter to the [Lexilla](https://github.com/ScintillaOrg/lexilla) project there may be places that Java and C have diverged, and triple `"""` is one that is not valid C.