In java , two kinds of memories are used namely stack and heap memory.
Stack memory is used to store function calls and the local variables defined within the function.
pushd is the alias for push-location and popd is alias for pop-location.These both are cmdlets . pushd pushes the current working directory to a stack.So we can explore around other directories