Miguel Ribeiro Miguel Ribeiro - 1 year ago 50
Java Question

How do you know a variable type in java?

Let's say I declare a variable:

String a = "test";

And I want to know what type it is, i.e., the output should be
How do I do this?

Answer Source