How do you know a variable type in java? [duplicate]

a.getClass().getName()

Leave a Comment