What is the concept of handle in Java?


Posted by Rich on 2022-07-18

I was googling the differences between primitive and object in Java. One of the difference is that primitive stores value and object stores handle. So I wonder what is handle? I found this post on stackoverflow.
The usual term is "object reference" (or just "reference"), rather than "handle."
There are more details in that post.










Related Posts

MTR04_0630

MTR04_0630

圖

C 語言練習程式(7) -- 直接改變陣列內容&利用指標達成回傳型態轉換 -- 指標相關程式集錦(6)

C 語言練習程式(7) -- 直接改變陣列內容&利用指標達成回傳型態轉換 -- 指標相關程式集錦(6)


Comments