Java Method isSynthetic() MethodThe isSynthetic() method of Method class returns true if this executable is a synthetic construct; returns false otherwise. SyntaxParameterNo parameter is passed. Returnstrue if and only if this executable is a synthetic construct as defined by The Java? Language Specification. ThrowDoes not throw the exception. Example 1Test it NowOutput: Synthetic methodstatic java.lang.String ReflectMethodisSyntheticExample1.access$000(ReflectMethodisSyntheticExample1) name:access$000 Example 2Test it NowOutput: false
Next TopictoGenericString() Method
|