I have a abstract class B with two abstract methods
public abstract class B
{
public abstract void C();
public abstract void D();
}
I am trying to create the object of abstract class by using
B objB = new B(){
@Override
public void C() {
}
@Override
public void D() {
}};
Is ObjB an instance of Abstract class? Also I tried with instanceof operator as System.out.println(objB instanceof B); which is returning me true.
if the above is not the object of Abstract Class then why above statement is returning true?