Hi,
I've been reading Head First
Java, and notice that in many of the examples given, a class will call a new instance of itself, e.g.
import javax.sound.midi.*;
public class MiniMiniMusicApp {
public static void main(
String[] args) {
MiniMiniMusicApp mini = new MiniMiniMusicApp();
mini.play();
}
etc.
Why doesn't this cause a recursive loop? The new class should declare another new class, and so on, ad infinitum.
Thanks!
J