Person p;
if (p instanceof Person){
	System.out.println("true dude");
}

Checks if a variable is the same class as a compared class