Published: 17 Jun 2020 › Updated: 17 Jun 2020
LEARNING STATIC MODIFIER IN JAVA
The static modifier in java directly relates to the class and not to the instance of the class. They are advantageous in the sense that you don't need to create an object each time to access the methods.
In the above code there's no any instance of the class named as MyClass to access the method which is firstMessage(). It's because whenever you used the static modifier, you don't need to create the instance of the object.
Leave LEARNING STATIC MODIFIER IN JAVA to:
Read more #java posts
Best Posts From Leo Umesh
We have not curated any of leoumesh's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Leo Umesh
- The Tattoo of My Newborn Baby Girl Forever Inked on My Skin
- Long Weekend Food Feast With Wife
- String Manipulation in C#: Part 2
- String Manipulation in C#
- Introduction to C# and .NET
- Weekend Escape To Falls
- Evening Barbecue With Favourite Beer 🍺 🍻
- NumPy Broadcasting
- Summer BBQ
- Review of "The Day of The Jackal" Series
- Wonders of Wave Rock, Western Australia
- Trying To Make Authentic Chicken Dum Biryani At Home
- Beautiful Ocean Lookout in South West Australia
- Esperance: Hidden Paradise of Western Australia
- Cruising Through Blue Haven Beach
- My First Tattoo
- Exploring Flavoursome Veggie Indian Cuisines
- Australia's Popular Drink: Homemade
- An Everlasting Flowers
- Unexpected Rainbow At Wellington Dam, Western Australia