Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jessinra98
8d ago
0 comments
Save
Share
The article has a section about that. For me, a struct in C/C# can be modified and is passed by copy while a value class can not be modified and is passed by value.
I do not think you can do stack allocation in Java.
0 comments
1 comments · 1 top-level
top
newest
oldest
joe_mwangi
7d ago
Yup. By design, value classes will use cpu registers as a 1st priority instead.
j
/
k
navigate · click thread line to collapse