java dynamic memory allocation?

Posted by JavaUser on Stack Overflow See other posts from Stack Overflow or by JavaUser
Published on 2010-03-28T11:51:56Z Indexed on 2010/03/28 11:53 UTC
Read the original article Hit count: 304

Filed under:
|

Hi,

Why an object initialization using " new " keyword is called as dynamic memory allocation since compile time itself we know the memory needed for that object . Also please explain what happen when u do ClassA object = new ClassA(); in heap and stack .

Thx

© Stack Overflow or respective owner

Related posts about java

Related posts about oops