I have the following variables
MyObj myObj = new MyObj();
String myString = "myPackage.MyObj";
where MyObj look like this
package myPackage;
class MyObj {
private String one;
private String two;
}
How can I check if myObj is an instance of the full qualified class name as represented by the string myString?
You can use
Class#isInstance()for this.