I have a doubt on mcq .Reply to this thread so that I can paste the ss in the discuss coding blocks portal since I am unable to send jpegs here.
Doubt on mcq on java
execute all static statements from top to bottom.
that will be ur output.
also note in one of the static statement we are creating hackerearth object so that will call constructor and becuase constructor has print statement that will also come in output
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.