Javatpoint Logo
Javatpoint Logo

Java Method isSynthetic() Method

The isSynthetic() method of Method class returns true if this executable is a synthetic construct; returns false otherwise.

Syntax

Parameter

No parameter is passed.

Returns

true if and only if this executable is a synthetic construct as defined by The Java? Language Specification.

Throw

Does not throw the exception.

Example 1

Test it Now

Output:

Synthetic methodstatic java.lang.String ReflectMethodisSyntheticExample1.access$000(ReflectMethodisSyntheticExample1)
 name:access$000

Example 2

Test it Now

Output:

false





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA