how to find Type of object at runtime in Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 13505
Total Votes: 139 votes
Category: JAVA/JAVA Misc
Submitted on: 2013-01-25 15:53:54
Submitted By: Javin Paul
Description:Java doesnt support RTTI or Runtime Type Identification like C++ programming language but still provides some ways to find type of object at runtime. This article explores those ways like using instanceof and Class getClass method and there advantage over each other. More detail...