Here you can find the source of instanceOf(Object obj, String className)
public static boolean instanceOf(Object obj, String className)
//package com.java2s; //License from project: Apache License public class Main { public static boolean instanceOf(Object obj, String className) { boolean check; try {/* w ww . j a v a2 s.co m*/ check = Class.forName(className).isInstance(obj); } catch (ClassNotFoundException e) { check = false; } return check; } }