One more way that can terminate our app

All of us know about heap and stack where our objects and local variable gets memory, but one more thing we need to know that they can terminate our program abnormally

If the heap and stack collide then  the program will terminate

because stack grows toward the heap when a method is invoked and shrinks when the
method returns

Which may be  called as OutOfMemoryError

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s