Heap and Stack

Stack and Heap are the main areas of memory in Java. Before Understanding Stack and Heap , Lets understand below terms in Java. Local Variables : variables which are declared inside a method or passed as a method parameter. Instance Variables : Variables which are declared directly inside a class Example package com.kb.memorymanagement;   public […]

Share this article on