checking instance of in java code example
Example: instanceof java
class Example{
public static void main(String args[]){
Example anexample=new Example();
System.out.println(anexample instanceof Example);
}
}
class Example{
public static void main(String args[]){
Example anexample=new Example();
System.out.println(anexample instanceof Example);
}
}