---
title: "Discussion on \"What happens when you override the static method in Java?\" | Hashnode"
description: "Discussion on \"What happens when you override the static method in Java?\". What happens when you override static methods in java? This interview question is often asked in interviews."
url: "https://hashnode.com/posts/what-happens-when-you-override-the-static-method-in-java/63ee0c84dba72e28846b43ab"
---

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

Discussion

# [What happens when you override the static method in Java?](https://ayushgandhi.dev/what-happens-when-you-override-the-static-method-in-java?utm_source=hashnode&utm_medium=feed)

What happens when you override static methods in java? This interview question is often asked in interviews.

Feb 16, 2023 · 4 min read · ayushgandhi.dev  
Updated Feb 18, 2023  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#static](https://hashnode.com/tag/static)
-   [#core-java](https://hashnode.com/tag/core-java)
-   [#oops](https://hashnode.com/tag/oops)

## Written by

[Ayush Gandhi](https://hashnode.com/@Ayush3150)

@Ayush3150 · India

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

Software Engineer @Jeavio

I am a software Engineer. My skills are Java, spring-boot, hibernate, MySQL, javascript, ReactJs, and Node js. Always open to grabbing new opportunities.

## Responses 2

Markdown supported · ⌘↵ to post

[Prashant Aghara](https://hashnode.com/@prashan2111)

[Feb 16, 2023](https://hashnode.com/posts/what-happens-when-you-override-the-static-method-in-java/63ee0c84dba72e28846b43ab/comment/63ee520346e2f1644c4f19fc)

Awesome Content ☺️

[Ayush Gandhi](https://hashnode.com/@Ayush3150)

[Feb 17, 2023](https://hashnode.com/posts/what-happens-when-you-override-the-static-method-in-java/63ee0c84dba72e28846b43ab/comment/63ee520346e2f1644c4f19fc#reply-63ef1ace3c9c765be7a4695d)

Thank you, Prashant

[Maulik Gandhi](https://hashnode.com/@maulikgandhi9)

[Feb 16, 2023](https://hashnode.com/posts/what-happens-when-you-override-the-static-method-in-java/63ee0c84dba72e28846b43ab/comment/63ee4ba83c9c765be7a4537f)

Nicely explained 🙌

[Ayush Gandhi](https://hashnode.com/@Ayush3150)

[Feb 16, 2023](https://hashnode.com/posts/what-happens-when-you-override-the-static-method-in-java/63ee0c84dba72e28846b43ab/comment/63ee4ba83c9c765be7a4537f#reply-63ee4d1f46e2f1644c4f1927)

Thanks Maulik 🙌🫡
