This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
What is "the data that is coming" - where is it coming from? In what format? Apparently not from inside of a JVM?
Joined: Nov 26, 2007
thanks for reply, My problem is like that suppose i am having a class from which i am getting an object but i don't what is data type of member variables. I wanted to know the data type of member variables.
Joined: Mar 22, 2005
You mean the method returns a java.lang.Object? You can get at the class name through obj.getClass().getName() - that'll return the fully qualified class name.
You can also check for particular classes as follows: