how to find Type of object at runtime in Java
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
how to find Type of object at runtime in Java
Java doesnt support RTTI or Runtime Type Identification like C++ programming language but still provides some ways to find type of object at runtimehttp://javarevisited.blogspot.com/2012/09/how-to-determine-type-of-object-runtime-identifi...
Total Hits: 4295
Total Votes: 3 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...Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 0% |
0 |
![]() ![]() |
![]() ![]() 0% |
0 |
![]() ![]() ![]() |
![]() ![]() 0% |
0 |
![]() ![]() ![]() ![]() |
![]() ![]() 33.33% |
1 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 66.67% |
2 |




0%

0%

0%

33.33%

66.67%