We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
first of all static variables will get the memory while execution,
so the boolean flag is initialized with true value, so the
condition become true and it will gives
the result of area by taking inputs.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Static Initializer Block
You are viewing a single comment's thread. Return to all comments →
first of all static variables will get the memory while execution, so the boolean flag is initialized with true value, so the condition become true and it will gives the result of area by taking inputs.