1. public class Test { 2. public static void main (String [] args) { 3. unsigned byte b = 0; 4. b--: 5. 6. } 7. }
Show comments for this question (0) Add comments Link to this question
1. public class Test { 2. public static void main (String[] args) { 3. String foo = args [0]; 4. String bar = args [1]; 5. String baz = args [2]; 6. } 7. }
1. //Point X 2. public class Foo { 3. public static void main (String [] args) throws Exception { 4. Print Writer out = new Print Writer (new 5. java.io.Output Stream Writer (System.out), true); 6. out.printIn (“Hello”) 7. } 8. }
1. package foo; 2. 3. import java.util.Vector 4. 5. private class My Vector extends Vector { 6. Int i = 1’ 7. public MyVector () { 8. i = 2; 9. } 10. } 11. 12. public class My New Vector extends my Vector { 13. public MyNew Vector () { 14. i = 4; 15. } 16. public static void main (String args []) { 17. MyVector v = new My New Vector (); 18. } 19. }
1. public class Foo { 2. public static void main (String [] args) { 3. try { System.exit (0); } 4. finally { System.out.printIn(“Finally”):} 5. } 6. }
1. Public class While Foo} 2. public static void main (Straing[] args) { 3. int x = I, y = 6 4. while ( y--) {x++:} 5. System, out. printIn (“x = “ + x + “ y = “ + y): 6. { 7. {
6. <my Tag:foo bai = 42> 7. <%=” processing”%> 8. </my Tag.foo>
11. Public void services (Servlet Request request, 12. Servlet Response response) 13. throws 10 Exccption { 14. Servlet Context cxt = get Servlet Config ().get Servlet Context (): 15. Input Stream in = 16. insert code here 17. {