public class Sequence { Sequence() { System.out.print("c "); } { System.out.print("y "); } public static void main(String[] args) { new Sequence().go(); } void go() { System.out.print("g "); } static { System.out.print("x "); } }
so that's the code and the print out sequence is xycg .....what is it that is driving the sequence output to do it in this order?
thanks