01: package U2.T2;
02:
03: import U2.T2.Obj.*;
04:
05: class Coba {
06:
07: public static void main(String[] args) {
08:
09: /*
10: System.out.println(new Boolean(true) == new Boolean(true)) ;
11: throw (new Error("Bla bla bla")) ;
12: */
13:
14: A2 a2 = new A2("bla", 234);
15: try {
16: Class C1 = a2.getClass().getField("x").getType();
17: Class C2 = (new Integer(10)).getClass();
18: Class C3 = Integer.TYPE;
19: System.out.println(C1);
20: System.out.println(C2);
21: System.out.println(C3);
22: System.out.println(C1 == C2);
23: System.out.println(C1 == C3);
24: } catch (Exception e) {
25: System.out.println("!!!");
26: }
27: ;
28:
29: try {
30: Integer x = new Integer(100);
31: Integer y = Cloner.clone(x);
32: System.out.println("@ " + x + " @ " + y + " @ " + (x == y));
33: } catch (Exception e) {
34: System.out.println("!!!");
35: }
36: ;
37:
38: System.out.println(!false && true);
39:
40: //Integer r = null ;
41: //A2 a3 = new A2("NULLL",r) ;
42: //System.out.println (a3) ;
43:
44: System.out.println((byte) 0);
45: System.out.println((byte) 127);
46: System.out.println((byte) 255);
47: System.out.println((byte) -1000);
48:
49: String s1 = "";
50: String s2 = new String("");
51: Integer x1 = new Integer(0);
52: Integer x2 = new Integer(0);
53:
54: System.out.println(s1 == s2);
55: System.out.println(x1 == x2);
56:
57: }
58: }
|