Click here to Skip to main content
15,918,889 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts

In BCEL we can push primitive types on Operand Stack. BUT now i want to Can we push a Custom Type Object on Stack in BCEL.

thanks in advance.
Posted
Updated 5-Jun-11 23:06pm
v2

1 solution

I can't tell you for certain how BCEL works, but in general principal the answer is no.
The stack does not contain any reference objects, these exist in the heap, but it will hold the reference variable that points to the memory location in the heap.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900