java.lang.Class.isSynthetic() java.lang.Class.isPrimitive() java.lang.Class.newInstance() java.lang.Class.isSynthetic() package com.codingdict; import java.lang.*; public class ClassDemo { public static void main(String[] args) { ClassDemo c = new ClassDemo(); Class cls = c.getClass(); // returns true if this class is a synthetic class, else false boolean retval = cls.isSynthetic(); System.out.println("It is a synthetic class ? " + retval); } } java.lang.Class.isPrimitive() java.lang.Class.newInstance()