2012年5月9日

摘要: JAX-WS 2.0 Annotations@WebServiceThis annotation marks either a Java class or a service endpoint interface (SEI) as implementing a Web service interface.// 该注释声明这个类或者是服务终端接口实现了联网服务接口//This annotation is applicable for a client or server SEI;// 可以用在客户端或者服务器的服务终端接口or for a service endpoint implementat 阅读全文
posted @ 2012-05-09 18:52 TOTOTO_TOTO 阅读(1292) 评论(0) 推荐(0)

2012年4月10日

摘要: 子类 父类 那点事 声明父类 实例子类 子类强制转换父类 父类强制转换子类 绕的跟顺口溜一样 看得我是稀里糊涂 干脆扔掉所有别人的东西 自己研究声明父类 实例子类多态 用父类的参量 方法调用时用子类方法Father f1 = new Child();强制转换 子类可强制转换为父类 父类可强制转换为子类 但是前提是 该父类在声明时是通过实例子类声明的Father f1 = new Child();Child c1 = (Child) f1; 如果Child 没有extends Father 则语法检查器会报错但是 如果Child extends FatherFather f1 = new Fat 阅读全文
posted @ 2012-04-10 11:27 TOTOTO_TOTO 阅读(175) 评论(0) 推荐(0)

2012年3月26日

摘要: public class Yikes{ public static void go(Long n) { System.out.print("Long "); } public static void go(Short n) { System.out.print("Short "); } public static void go(int n) { System.out.print("int "); } public static void main(String[] args) { short y = 6; long z = 7; g 阅读全文
posted @ 2012-03-26 12:14 TOTOTO_TOTO 阅读(159) 评论(0) 推荐(0)