System.out.println("First eror :: without semicolon ") // first Error System.Out.println("This second error :: OUT object not used proper :: "); //second error class TestCompilation { public static void main(String []args) { System.out.println("Hello no semicolon::")//First Error System.Out.println("Hello out spell not correctely::"); //Second Error } }
whenever I compile the above code with the JAVAC command in cmd, it gives only the First Error value so as not to give a second error. In the java language, the compiler is partly and the interpreter partly, and in java the first compilation occurs, so the compiler should list all the errors, but this gives me only one error. Why is this happening? I donβt understand, so please help me solve this problem.
I think, now I understand that my question means that the compiler works completely ...
For this I am creating a simple example, this will help you understand that the java compiler is working.
class TestCompilation { public static void main(String []args) { Syste.out.rintln("Hello");
source share