- instanceof
String s = ""; System.out.println(s instanceof String); // true
- simpleName
String s = ""; System.out.println(s.getClass().getSimpleName()); // String
String s = ""; System.out.println(s instanceof String); // true
String s = ""; System.out.println(s.getClass().getSimpleName()); // String