Java - Methods and Code Reusability
What will be the output of the following Java program?
public class Example {
public static void main(String[] args) {
alpha();
}
static void alpha() {
beta();
System.out.println("Alpha finished");
}
static void beta() {
System.out.println("Beta finished");
}
}