Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  


The class compiler provides support to java to native code compilers and related services.When JVM starts ,it determines if a system property in java exists.If so , it is assumed to be the name of library(Whose exact location and type is platform dependent) .The loadLibrary() method in class-System is called to load the library. If the library loading is successful, the function name java.lang.Compiler.start() on the library is called. In case there is no compiler, these methods do nothing.

The structure of class Compiler is given as:


public final class java.lang.Compiler extends java.lang.Object{
//methods:
public static Object command(Object obj);
public static boolean compileClass(Class aclass);
public static boolean compileClassES(String classes);
public static void disable();
public static void enable();
}
 

  


Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

LEAVE A REPLY

Please enter your comment!
Please enter your name here