Take a look at the code below and please help me solve the trick.
class TestTrick{ public static void main(String args[]) { } static marker() { System.out.println("programe executed"); } }
The result required from this program is that the program should print program executed , which means that the marker method must be executed. But there are some rules:
- Nothing should be written in both methods.
- No other class can be added to the program.
- The program must execute the output statement in the marker method.
Three days have passed, and I canβt solve the problem, because I am not a Java programmer. I searched everything on the Internet to get the key, but I failed. please someone help me run this program by strictly following the rules.
source share