10 2015 档案

摘要:1. Delegation a relationship that is not directly supported by Java. This is a midway between inheritance and composition, because you place a number 阅读全文

posted @ 2015-10-26 17:12 terminator-LLH 阅读(191) 评论(0) 推荐(0)

摘要:1. Every non-primitive methods has a toString() method"source = " +source; //an object of WaterSourcethe compiler sees you tring to add a String objec... 阅读全文

posted @ 2015-10-26 08:56 terminator-LLH 阅读(178) 评论(0) 推荐(0)

摘要:1.Package: the library unita package contains a group of classes. organized togeother under a single namespace. if you're planning to create libraries... 阅读全文

posted @ 2015-10-22 21:22 terminator-LLH 阅读(331) 评论(0) 推荐(0)

摘要:1. What is finalize() forthe need for finalize() is limited to special case in which your object can allocate storage in some way other than creating ... 阅读全文

posted @ 2015-10-21 20:58 terminator-LLH 阅读(279) 评论(0) 推荐(0)

摘要:1.String s;System.out.println("s=");you will get a compile time error because s isn't actually attached to anything, A safer practice, then is always ... 阅读全文

posted @ 2015-10-18 10:58 terminator-LLH 阅读(178) 评论(0) 推荐(0)

导航