type of types in Java

Viewed 643

At the risk of asking a question that has already been asked but

is there a counterpart in Java for the Type type available in C# ?

What I want to do is filling an array with elements which reflect several primitive types such as int, byte etc.

In C# it would be the following code:

Type[] types = new Type[] { typeof(int), typeof(byte), typeof(short) };
2 Answers
Related