public class MixOperator
{
                int i;
                public static void main(String s[])
                {
                                float f;
                                MixOperator m=new MixOperator();
                                m.i=15;
                                f=(float)m.i;
                                if(m instanceof MixOperator)
                                {
                                                System.out.println("The Type Casted Value : "+f);
                                }
                                else
                                {
                                                System.out.println("Check the Objec Again");
                                }
                }
}

JAVA MixOperator

Advertisements