Which of the following is NOT a valid grammar in Java?
public static void main(String[] args) { }
boolean flag = true;
int sum = a + b;
class Test { public static void main() { }

Programming Languages Exercises are loading ...