Some testing questions

I have a few questions regarding testing

1) Does anyone know if the device identifier of the simulator is always the same? I've tested it with two different watches and it seems to be the same, but I'm not sure if the identifier stays the same even when using it elsewhere?

2) Does anyone know how/if I can print out what the type of thing is of an object? There is instanceof, so you can say, if (foo instanceof bar) but what if I want to know what bar is before I instanceof it? Or actually, I want to print out the instanceof a object and I want to print out what the instance of is in my test function.