All About Class Compiler In Java



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();
}
 
  
All About Class Compiler In Java All About Class Compiler In Java Reviewed by Animesh Chatterjee on October 03, 2018 Rating: 5

No comments:

Powered by Blogger.