That class is used by the JVM (it compiles bytecode to native code if a JIT is present), so there is no example one could give for client code that uses it.
If you are trying to compile
Java source code at runtime, your code could use the classes that make up the javac compiler. That approach is described
here.