Does two languages use the same stack and heap on the ram?
Even if it is an implementation detail, each thread on a system has its own stack. The heap is an image from the 70's segmented model and has no sense on any process except Java ones on a modern OS: when a process requires more memory it just asks the kernel for it and has no preallocated heap. In a sense all processes in a system (except for Java ones) share the same available memory pool, but it not what was called a heap.
Java is different, because a Java program executes in a JVM, and the JVM has its allocated memory and the process cannot require memory from the system. So in a JVM, the whole process has a heap, and each thread has a stack. And if you launch 2 independant Java programs, you will have 2 independant JVM each with its own heap.
I was reading regarding the memory allocation in python and was wondering if I have java and python installed in the same computer system then does java and python use the same stack and heap or they have different stack and heaps allocated for them in the RAM? 
Can anyone please help me to clear my doubt.
Thanks in Advance.