create account

LEARNING STATIC MODIFIER IN JAVA by leoumesh

View this thread on: hive.blogpeakd.comecency.com
· @leoumesh ·
$5.98
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.

![Screenshot_1.png](https://images.hive.blog/DQmWhT95xeS2aNqnWEMSwTFtdibPXrYT3VKGMAjww2zUZaQ/Screenshot_1.png)

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.
👍  , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorleoumesh
permlinklearning-static-modifier-in-java
categoryhive-174578
json_metadata{"tags":["java","static","programming","programmer","coding","code"],"image":["https://images.hive.blog/DQmWhT95xeS2aNqnWEMSwTFtdibPXrYT3VKGMAjww2zUZaQ/Screenshot_1.png"],"app":"hiveblog/0.1","format":"markdown"}
created2020-06-17 06:02:42
last_update2020-06-17 06:02:42
depth0
children1
last_payout2020-06-24 06:02:42
cashout_time1969-12-31 23:59:59
total_payout_value3.254 HBD
curator_payout_value2.728 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length556
author_reputation212,340,493,251,438
root_title"LEARNING STATIC MODIFIER IN JAVA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id98,012,731
net_rshares15,222,275,293,279
author_curate_reward""
vote details (25)
@gitplait-mod1 ·
Nice tip for java learner. Gitplait platform is looking for people like you.
Your post has been curated with @gitplait community account because this is the kind of publications we like to see in our community.

Join our Community on [Hive](https://hive.blog/trending/hive-103590) and Chat with us on [Discord](https://discord.com/invite/CWCj3rw).

[Gitplait-Team]
👍  
properties (23)
authorgitplait-mod1
permlinkqc2eeu
categoryhive-174578
json_metadata{"users":["gitplait"],"links":["https://hive.blog/trending/hive-103590","https://discord.com/invite/CWCj3rw"],"app":"hiveblog/0.1"}
created2020-06-17 09:59:21
last_update2020-06-17 09:59:21
depth1
children0
last_payout2020-06-24 09:59:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length364
author_reputation64,455,719,431
root_title"LEARNING STATIC MODIFIER IN JAVA"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id98,015,946
net_rshares48,682,511,096
author_curate_reward""
vote details (1)