Javac is a Compiler for compiling Java Classes. Its comiles line by line. If any line is having error like symentic error or sentex error, Java file wont get comiled.
Java is a Interperator used to run Java Class (Byte Codes). Its run the byte code gets after compilation of the java class.
How memory management is handled.
Whey we try to run our java program. Java interperator request to the OS to give some memory for operations. After getting the memory from OS, It divides memory into two parts one is called Stack memory and second is called Heap memory. Stack is used to store the reference name and Heap is used to store the objects. Heap memory have some class level memory we can also say memory for static members.
No comments:
Post a Comment