If you are writing the code then you should know what kind of an object it is. Otherwise, its very hard to tell because it could be an object from one of the data types in java or an object of some class that someone wrote. For example, a class can be something like:
Code:
public class dud() {
public dud() {
int x;
int y;
String st;
.
.
}
}
And therefore its hard to find out what type it is. Another dirty way to tell it would be to try and cast it into some other type and if you get an error, you can see what type of data you were trying to convert. Hope this helps
