Java Compiler command() method

The command() method of the Java Compiler class is used to examine the argument type and its fields and perform some command line operations.

Syntax

Parameters

any - a compiler-specific command.

Return

A value returned by the compiler.

Example 1

Output:

class java.lang.StringBuilder
class java.lang.Integer
class java.util.Scanner
class java.lang.Exception
Value returned by method is : null




Latest Courses