- 博客(24)
- 收藏
- 关注
转载 Thinking in Java——笔记(21)
ConcurrencyHowever, becoming adept at concurrent programming theory and techniques is a step up from everything you’ve learned so far in this book, and is an intermediate to advanced topic.In...
2017-01-09 19:24:00 583
转载 Thinking in Java——笔记(20)
AnnotationsThey provide information that you need to fully describe your program, but that cannot be expressed in Java.In general the kind of annotations you add and what you do with them are...
2016-12-27 16:56:00 148
转载 Thinking in Java——笔记(19)
Enumerated TypesBasic enum featuresWhen you create an enum, an associated class is produced for you by the compiler. This class is automatically inherited from java.lang.Enum.The ordinal( ) ...
2016-12-26 19:45:00 208
转载 Thinking in Java——笔记(18)
I/OThe original byte-oriented library was supplemented with char-oriented, Unicode-based I/O classes.It’s rather important to understand the evolution of the I/O library.The File class"Fi...
2016-12-24 10:54:00 600
转载 Thinking in Java——笔记(17)
Containers in DepthFull container taxonomyYou can usually ignore any class that begins with "Abstract."Filling containersThis fill( ) just duplicates a single object reference throughout ...
2016-12-21 19:32:00 191
转载 Thinking in Java——笔记(16)
ArraysWhy arrays are specialThere are three issues that distinguish arrays from other types of containers: efficiency, type, and the ability to hold primitives.The cost of this speed is that...
2016-12-19 19:34:00 131
转载 Thinking in Java——笔记(15)
GenericsThe term "generic" means "pertaining or appropriate to large groups of classes."While using someone else’s generic type is fairly easy, when creating your own you will encounter a num...
2016-12-19 09:00:00 458
转载 Thinking in Java——笔记(14)
Type InformationThe need for RTTIBecause it is a dynamically bound method, the proper behavior will occur even though it is called through a generic reference.That’s what RTTI means: At run ...
2016-12-15 08:47:00 180
转载 Thinking in Java——笔记(13)
StringsImmutable StringsObjects of the String class are immutable.Every method in the class that appears to modify a String actually creates and returns a brand new String object containing ...
2016-12-13 17:05:00 130
转载 Thinking in Java——笔记(12)
Error Handling with ExceptionsThe ideal time to catch an error is at compile time, before you even try to run the program.The rest of the problems must be handled at run time through some for...
2016-12-12 20:10:00 213
转载 Thinking in Java——笔记(11)
Holding Your ObjectsIn general, your programs will always be creating new objects based on some criteria that will be known only at run time.You can’t rely on creating a named reference to ho...
2016-12-11 22:35:00 177
转载 Thinking in Java——笔记(10)
Inner ClassesIt allows you to group classes that logically belong together and to control the visibility of one within the other.It knows about and can communicate with the surrounding class....
2016-12-09 20:02:00 187
转载 Thinking in Java——笔记(9)
PolymorphismAbstract classes and methodsIf you have an abstract class, objects of that specific class almost always have no meaning.You create an abstract class when you want to manipulate a...
2016-12-08 14:48:00 112
转载 Thinking in Java——笔记(8)
PolymorphismThe polymorphic method call allows one type to express its distinction from another, similar type, as long as they’re both derived from the same base type.Upcasting revisitedTa...
2016-12-07 15:17:00 182
转载 Thinking in Java——笔记(7)
Reusing ClassesThe first is composition,You’re simply reusing the functionality of the code, not its form.The second approach is inheritance,You literally take the form of the existing class ...
2016-12-06 15:40:00 169
转载 Thinking in Java——笔记(6)
Access ControlA piece of work isn’t good until it’s been rewritten, often many times.Thus a primary consideration in object-oriented design is to “separate the things that change from the thi...
2016-12-05 14:44:00 121
转载 Thinking in Java——笔记(5)
Initialization & CleanupGuaranteed initialization with the constructorIn Java, the class designer can guarantee initialization of every object by providing a constructor.The coding style...
2016-12-01 20:11:00 257
转载 Thinking in Java——笔记(4)
Controlling Executiontrue and falseJava doesn’t allow you to use a number as a boolean.If you want to use a non-boolean in a boolean test, you must first convert it to a boolean value by usi...
2016-11-29 15:13:00 116
转载 Thinking in Java——笔记(3)
OperatorUsing Java operatorsSome operators change the value of an operand. This is called a side effect.Almost all operators work only with primitives. The exceptions are ‘=‘, ‘==‘ and ‘!=‘,...
2016-11-28 19:50:00 141
转载 Thinking in Java--笔记(2)
Everything Is an ObjectYou manipulate objects with referencesEach programming language has its own means of manipulating elements in memory.Are you manipulating the element directly, or are ...
2016-11-25 16:46:00 169
转载 Thinking in Java——笔记(1)
Introduction To ObejctThe progress of abstractionBut their primary abstraction still requires you to think in terms of the structure of the computer rather than the structure of the problem y...
2016-11-23 10:12:00 472
转载 JDBC基础
JDBC补充:Jabc相关类介绍1.Connection类a.用于代表数据库的链接,客户端与数据库所有交互都是通过connection对象完成的。b.主要方法: createStatement():创建向数据库发送sql的statement对象。 prepareStatement(sql) :创建向数据库发送预编译sql的PrepareSatement对象。 ...
2016-11-04 09:16:00 96
转载 Jsp入门学习笔记
#Jsp入门一、JSP基础语法1.JSP指令:page inlcude taglib2.JSP注释:a.html注释: <!-- abcdefghijklmn -->b.jsp注释: <%-- abcdefghijklmn --%>c.jsp脚本内: //abcdefghijk /*abcdefghijk*/3.js...
2016-04-28 15:30:00 69
原创 不留一丝痕迹。一个人徒步于阡陌高台之上
bbs.tianya.cn/post-104120-24-1.shtml bbs.tianya.cn/post-104281-14-1.shtml bbs.tianya.cn/post-104120-25-1.shtml music.douban.com/doulist/4176030/ bbs.tianya.cn/post-104281-15-1.shtml music.do
2014-06-17 14:50:57 357
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人