java.lang.Compiler.disable()


java.lang.Compiler.disable()

package com.codingdict;



import java.lang.*;



public class CompilerDemo {



   public static void main(String[] args) {



      // checking if compiler is enabled or not        

      Compiler.enable();

      System.out.println("Compiler Enabled...");                          

      Compiler.command("{java.lang.Integer.*}(compile)");



      Integer i = new Integer("30");



      // returns a hash code value

      int retval = i.hashCode();

      System.out.println("Value = " + retval); 



      // disable the compiler

      System.out.println("Disabling Compiler..."); 

      Compiler.disable();                             

   }

}