---
title: "Can we write static public void instead of public static void?"  
description: "Can we write static public void instead of public static void?"  
author: "Anonymous User"  
published: 2015-07-20  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2715/can-we-write-static-public-void-instead-of-public-static-void  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# Can we write static public void instead of public static void?

Yes, we can write,the change in sequence of modifiers are perfectly valid here. The code will successfully complied and runs properly. Placement of modifiers doesn't matter until the signature contains required keywords. We can even add **final** keyword in this, will work and runs fine.

## Answers

### Answer by Anonymous User

Yes, we can write,the change in sequence of modifiers are perfectly valid here. The code will successfully complied and runs properly. Placement of modifiers doesn't matter until the signature contains required keywords. We can even add **final** keyword in this, will work and runs fine.


---

Original Source: https://www.mindstick.com/interview/2715/can-we-write-static-public-void-instead-of-public-static-void

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
