Answer the question
In order to leave comments, you need to log in
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
The size depends on the specific virtual machine and its settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question