---
title: "Discussion on \"LinkedList as Stack\" | Hashnode"
description: "Discussion on \"LinkedList as Stack\". In Java, Stack is a subclass of Vector, but it can be implemented using a LinkedList for better performance in some cases. Here's a practical way to use LinkedList as a stack:\nWhy Use LinkedList for Stack?\n\nLinkedList provides efficient addFirst() an..."
url: "https://hashnode.com/posts/linkedlist-as-stack/67992344a998c365d3dc70ba"
---

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

Discussion

# [LinkedList as Stack](https://sdetinsider.hashnode.dev/linkedlist-as-stack?utm_source=hashnode&utm_medium=feed)

In Java, Stack is a subclass of Vector, but it can be implemented using a LinkedList for better performance in some cases. Here's a practical way to use LinkedList as a stack: Why Use LinkedList for Stack? LinkedList provides efficient addFirst() an...

Jan 28, 2025 · 1 min read · sdetinsider.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#java](https://hashnode.com/tag/java)
-   [#dsainjava](https://hashnode.com/tag/dsainjava)
-   [#linkedlists](https://hashnode.com/tag/linkedlists)
-   [#sdet](https://hashnode.com/tag/sdet)
-   [#qa](https://hashnode.com/tag/qa)
-   [#qa-testing](https://hashnode.com/tag/qa-testing)

## Written by

[Ganti Sai Sagar](https://hashnode.com/@saisagarganti)

@saisagarganti · Bengaluru, IN

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

SDET

Results-driven SDET with expertise in automation frameworks, API testing, and CI/CD pipelines. Proficient in Selenium, Appium, Postman, JUnit, TestNG and Jenkins. Skilled in Java and performance testing, ensuring high-quality software delivery in Agile environments.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
