The Wayback Machine - http://web.archive.org/web/20210504094914/https://www.geeksforgeeks.org/java-lang-compiler-class-java/amp/

Java.lang.Compiler Class in Java

Compiler Class provides support and related services to Java code to Native Code.
Native code is a form of code that can be said to run in a virtual machine (for example, [JVM]Java Virtual Machine).

Declaration :

public final class Compiler
   extends Object

Methods :

class NewClass$CompilerClass
Value : null

Is compilation successful ? : false

Is compilation successful using str ? : false

Note :
lang.Compiler Class inherits others methods from Object class in Java.

This article is contributed by Mohit Gupta_OMG 😀. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more,  please refer Complete Interview Preparation Course.

Article Tags :
Practice Tags :