tell the type of variable java code example
Example: get type of variable java
((Object) myVar).getClass().getName()
//OR
((Object) myInt).getClass().getSimpleName()
((Object) myVar).getClass().getName()
//OR
((Object) myInt).getClass().getSimpleName()