Amdocs Interview Question

Print "Hello World" without using a the int main function?

Interview Answer

Anonymous

May 18, 2018

Create a class and inside the constructor print hello world. Then create a global variable. You can use static block in java.