T
T
tyamur2017-04-09 15:26:15
Java
tyamur, 2017-04-09 15:26:15

What type of arrays are in java?

Actually a question in a subject. When we create an array containing any type (primitive or reference), we get an object (array). Ie the array itself has what class? I understand that it is necessary to look for it in the bytecode, and not at the language level. Who knows, please explain.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-04-09
@tyamur

Depends on the array type. For an array of bytes, for example, this is [B. For an array of strings - [Ljava.lang.String.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question