In Java, an Object can have a runtime type (which is what it was created as) and a casted type (the type you have casted it to be).
Object
I\'m wondering what
To determine a is object of which class you can use:
a
/*The java.lang.Object.getClass() method returns the runtime class of an object*/ System.out.println("a is object of: "+a.getClass());