Compiler responsibility homework help from Tutorspoint
Tutorspoint is an excellent site, which caters to all queries regarding java assignments of student and provides quality solutions.
Since the Java Assignment writing help is offered at reasonable rates, Tutorspoint service is highly recommended by students worldwide.
Send the compiler responsibility documents with specifications along with the due date you will get all the authentic solutions from the specialists on the java subject.
Whenever java compiler converts a source code into its equivalent byte code, it does two things:
- It converts the source code into its equivalent byte code statement wise and
- It checks whether that byte code can be properly executed by the JVM or not. i.e. if finds out whether the JVM has proper environment or not
In fact it is the duty of the compiler to create a proper environment for the JVM to execute the byte code. While compiling a source code if , at any time the compiler finds out that the proper environment is not there, then the compiler tries to create the proper environment. Even then, if it is not possible, then it generates a complication error.
Even though compiler creates the necessary environment for the JVM to execute the byte code, sometimes JVM will not able to execute the byte code because of some errors. These errors are known as run-time-errors.
Int a, b;
System. Out. Prinln (“inside function x ()”);
Public static void main (string arg)
X x = new X ();
X.a = 10;
- Function x ();
When we try to compile y.java file, the compiler creates the proper environment for the JVM to execute the byte code of y.class file. But in this program, we need the object of x.class file. But x .class file is not there in the hard disk, since we have not complied it. It should generate an error, but it will not. Instead the program will get executed perfectly. This is possible because of the compiler, as it has to create the proper environment, it compiles the x.java. file to generates the x.class. file and make it available to y.class file for execution.