I accidentally wrote something like this on NetBeans:
System.out.println(("Apples") System.out.println("Oranges"));
It initially showed me no error, compiled and the output was:
Apples
Oranges
After running it started showing me an error but it still compiled and gave the same output.
Also, is System.out.println((grade/=3) + "%")
a valid statement?
EDIT: As people are saying that it is not compiling, here is a screenshot: http://s1.postimg.org/m1ezmm3vz/Untitled.png It is compiling for me :/