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.
Here i've just declared B,H as static variables because static methods involve use of static variables. flag is just initialized to default boolean value which can either be set as true or false doesn't make a difference.
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 →
Here i've just declared B,H as static variables because static methods involve use of static variables. flag is just initialized to default boolean value which can either be set as true or false doesn't make a difference.