What is ment by a pool in this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is ment by a pool in this code

https://code.sololearn.com/cNYuke5AgH50/?ref=app

29th Jun 2017, 6:00 PM
Ishaq Za'rour
2 Answers
+ 2
A pool is a place where JVM (Java Virtual Machine) stores references to premade objects. Like in this example, this pool contains commonly used numbers (from -128 to 127) there are different pools too
29th Jun 2017, 6:18 PM
Eligijus Silkartas
Eligijus Silkartas - avatar
0
http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.4 ^Read that. Has everything you want to know about constant pools in Java.
29th Jun 2017, 6:19 PM
AgentSmith