0

Do static block gets executed before main block in Java?

24th Feb 2019, 4:27 AM
Atchya tharani
Atchya tharani - avatar
6 odpowiedzi
+ 1
Nope. first of everything is the main method. actually it starts with the first line of the main.
24th Feb 2019, 5:57 AM
Hadi Najafi
Hadi Najafi - avatar
+ 1
you can call it (your method) in the main
24th Feb 2019, 5:57 AM
Hadi Najafi
Hadi Najafi - avatar
+ 1
Bennett Post hmm, maybe.
24th Feb 2019, 7:42 AM
Hadi Najafi
Hadi Najafi - avatar
0
Bennett Post oh I didn't know that. thanks.
24th Feb 2019, 7:30 AM
Hadi Najafi
Hadi Najafi - avatar
0
Bennett Post , yes, I get it wrong. lol
24th Feb 2019, 7:39 AM
Hadi Najafi
Hadi Najafi - avatar
0
Bennett sry i typed it wrong Actually My question was "Do static block gets executed before main method?"
24th Feb 2019, 8:05 AM
Atchya tharani
Atchya tharani - avatar