I there any implicit static block in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I there any implicit static block in java

25th Nov 2019, 4:10 PM
akash raut
3 Answers
+ 4
Ace I've come to shutter the thought of ever referencing a link from GeeksForGeeks anymore. The rampant inaccuracies and lack of quality checks in their articles are reaching an all time low for me. While there might be some accurate articles on this website, just be aware of the consistent credibility issues I've experienced with their content in general. I actually skip looking at their content most of the time because it only results in me doing a lot more fact checking. I consider it worse than W3Schools ever was in the past and that's saying a lot. 😉
25th Nov 2019, 5:56 PM
David Carroll
David Carroll - avatar
+ 2
Ace To be honest I know this but may be I didn't understand his question well since it's not clear. Implicit is something that is done on its own internally but for static initializer block you have to declare the block static explicitly and put stuff inside it to run at the time of class loading.
25th Nov 2019, 4:56 PM
Avinesh
Avinesh - avatar
+ 1
No, I don't think so and kindly correct me if I'm wrong. Edit: You have to declare it explicitly.
25th Nov 2019, 4:22 PM
Avinesh
Avinesh - avatar