import java.util.List;

public class ClassObj extends Mac
{
	public static void main(String args[])
	{
		Mac objMac = new Mac();
		System.out.println(Mac.class.isAssignableFrom(ClassObj.class));
	}
}


class Mac
{	
}

Output

true

Leave a reply