Java Compiler compileClasses() methodThe compileClasses(String string) method of the Java Compiler class is used to compile all classes whose name matches the specified string. SyntaxParametersString - It is the name of classes to compile. ReturnThis method returns a Boolean value true if compilation succeeds. Otherwise returns false. Example 1Test it NowOutput: class CompilerCompileClassExample1 class CompilerExamples Value returned by method is : false Next TopicJava Compiler Class |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India