Java - Methods and Code Reusability
What will be the output of this code?
public class Demo {
public static void greet() {
System.out.println("Hello!");
}
public static void main(String[] args) {
greet();
}
}