Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

When you create an object in SAP's JAVA, does it go on stack or heap?

When you create an object in SAP's JAVA, does it go on stack or heap?

Or somewhere else ?

Thanks

Former Member replied

Simple answer is ..

Object references go to stack

the object(instance variable etc) go to heap.

Hope this answered your question.

Please award points for useful answers.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question