J
J
Jake Taylor2020-08-04 16:15:33
Java
Jake Taylor, 2020-08-04 16:15:33

What is the size of a reference variable in Java?

As you know, a reference type variable stores the memory address where the object is located.
And so a question - what size this link occupies in storage? And what is its type in the end - int?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-08-04
@n199a

The size depends on the specific virtual machine and its settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question