# Difference between method : static and public static

**URL:** <https://www.dynamicsuser.net/t/difference-between-method-static-and-public-static/53086>\
**Category:** Developer Forum\
**Created:** [June 2, 2014, 1:35pm UTC](https://www.dynamicsuser.net/t/difference-between-method-static-and-public-static/53086 "2014-06-02T13:35:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DominicB](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@DominicB](https://www.dynamicsuser.net/u/DominicB)\
**Post date:** [June 2, 2014, 1:35pm UTC](https://www.dynamicsuser.net/t/difference-between-method-static-and-public-static/53086/1 "2014-06-02T13:35:12Z")

</div>

I don`t find any restriction when using a static method without public.

I wonder when should I use public static instead of just static

Thanks

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [June 2, 2014, 6:17pm UTC](https://www.dynamicsuser.net/t/difference-between-method-static-and-public-static/53086/2 "2014-06-02T18:17:50Z")

</div>

There isn’t any functional difference, because the default access modifier is _public_. It’s a best practice, though, to specify an access modifier explicitly to show that you thought about it and decided that _public_ is the right one for the given method, not that you just forget about it.
