1
1
123qwe2015-09-16 16:24:01
Java
123qwe, 2015-09-16 16:24:01

What is stack and heap in programming language?

What's up, software.
The data structure - Stack(LIFO), and Stack in Java are two completely different things.
In general, explain in an accessible language what are stack and heap when programming?
I'm so confused that I can't adequately formulate the question.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tsarevfs, 2015-09-16
@tsarevfs

There is some confusion. Many programming languages ​​have call stacks and memory heaps. They are rather indirectly related to the data structures of the same name. And if the call stack is really similar to LIFO in terms of device, then the memory heap has little in common with the FIFO data structure.

D
Denis Ineshin, 2015-09-16
@IonDen

Data structures. Informal guide

S
Sergey, 2015-09-16
Protko @Fesor

The data structure - Stack(LIFO), and Stack in Java are two completely different things.

No. One and the same, LIFO implementation and nothing more. What exactly is bothering you? That the stack on the basis of the list is made?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question