How can we execute a Java class independently if it doesn't have a static main method ?
a. By initiating the flow in any of the static method b. By initiating the flow in any of static block c. By initiating the flow in any other instance method named as main d. By initiating the flow in any other instance method named as main and making it final
More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Q1. How can we execute a Java class independently if it doesn't have a static main method ?
a. By initiating the flow in any of the static method b. By initiating the flow in any of static block c. By initiating the flow in any other instance method named as main d. By initiating the flow in any other instance method named as main and making it final
Ans. By initiating the flow in any of static block
Help us improve. Please let us know the company, where you were asked this question :