Answers for "how to know datatype of variable in java"

4

java check data type

a.getClass().getName()
Posted by: Guest on June-03-2021
3

get type of variable java

((Object) myVar).getClass().getName()
//OR
((Object) myInt).getClass().getSimpleName()
Posted by: Guest on September-20-2020
1

get type java

a.getClass().getName()
Posted by: Guest on January-06-2021

Code answers related to "how to know datatype of variable in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language