hey! dude u r right, method returns value....
Check the program

public class Hello {
public static int a() {
System.out.println("Hello to the World of OOPs....!");
return 0;
}
}