Show comments for this question (0) Add comments Link to this question
1. public class Test { 2. public static main ( string[] args ) { 3. String foo = args[1]; 4. String bar = args[2]; 5. String bar = args[3]; 6. } 7. }
1. // Point X 2. public class Foo 3. pubic static void main (string [] args ) throws Expection { 4. java.io.PrintWriter our = new java.io.PrintWriter ( 5. new java.io.OutputStreamWriter (System.out), true ) ; 6. out.printIn (“Hello”); 7. } 8. }
1. Interface Foo 2. Int k = 0 ; 3. } 4. 5. public class Test Implements Foo { 6. public static void main ( String args [] ) { 7. init i ; 8. Test test = new Test.k : 9. i = test.k; 10. i = Test.k ; 11. i = Foo.k; 12. } 13. }
1. Publicclass Foo { 2. Public void main ( String [] args ) { 3. System.our.printIn (“Hello world.”) ; 4. } 5. }