---
title: "Discussion on \"Stacks in Java\" | Hashnode"
description: "Discussion on \"Stacks in Java\". A stack is a linear data structure that follows the Last In First Out(LIFO) principle. This means the last element inserted inside the stack is the first to be removed. Think of a stack as a pile of plates. You would typically grab the container that..."
url: "https://hashnode.com/posts/stacks-in-java/65051ec9738469d9c90be433"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stacks in Java](https://karellehofler.hashnode.dev/stacks-in-java?utm_source=hashnode&utm_medium=feed)

A stack is a linear data structure that follows the Last In First Out(LIFO) principle. This means the last element inserted inside the stack is the first to be removed. Think of a stack as a pile of plates. You would typically grab the container that...

Sep 16, 2023 · 2 min read · karellehofler.hashnode.dev  
Read the article

-   [#2articles1week-1](https://hashnode.com/tag/2articles1week-1)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Karelle Hofler](https://hashnode.com/@itskarelleh)

@itskarelleh · New Jersey, USA

  
[View profile](https://hashnode.com/@itskarelleh)

Software Engineer

Full Stack Engineer based in New Jersey, USA who takes a user-centric approach when developing apps.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
