Thinking in Java
jxst051665
这个作者很懒,什么都没留下…
展开
-
Thinking in java 4th Edition 读书笔记-I/O(1)
1.The File class has a deceiving name; you might think it refers to a file, but it doesn’t. In fact, "FilePath" would have been a better name for the class. It can represent either the name of a parti原创 2009-03-26 17:02:00 · 644 阅读 · 0 评论 -
Thinking in java 4th Edition 读书笔记-Concurrency(2)
1.A Runnable is a separate task that performs work, but it doesn’t return a value. If you want the task to produce a value when it’s done, you can implement the Callable interface rather than the Runn原创 2009-04-30 17:52:00 · 475 阅读 · 0 评论 -
Thinking in java 4th Edition 读书笔记-Concurrency(1)
1.Without concurrency, the only way to produce a responsive user interface is for all tasks to periodically check for user input. By creating a separate thread of execution to respond to user input, e原创 2009-04-24 17:36:00 · 734 阅读 · 0 评论 -
Thinking in java 4th Edition 习题答案全
http://greggordon.org/java/tij4/solutions.htm 向这位外国大哥致敬了!原创 2009-04-23 15:40:00 · 10218 阅读 · 4 评论 -
Thinking in java 4th Edition 读书笔记-I/O(5)
1.For each file to add to the archive, you must call putNextEntry( ) and pass it a ZipEntry object. The ZipEntry object contains an extensive interface that allows you to get and set all the data avai原创 2009-04-14 16:55:00 · 532 阅读 · 0 评论 -
Thinking in java 4th Edition 读书笔记-I/O(3)
1.input & output is based on decorator pattern2.the InputStream and OutputStream classes still provide valuable functionality in the form of byte-oriented I/O, whereas the Reader and Writer classes原创 2009-03-31 16:29:00 · 910 阅读 · 0 评论 -
Thinking in java 4th Edition 读书笔记-I/O(6)
1.(Questions)ObjectInputStream in = new ObjectInputStream(new FileInputStream(new File("..", "X.file")));Object mystery = in.readObject(); Even opening the file and reading in the object myster原创 2009-04-15 16:59:00 · 571 阅读 · 0 评论 -
Thinking in java 4th Edition 读书笔记-I/O(4)
1.Storing and recovering data:use a DataOutputStream to write the data and a DataInputStream to recover the data.If you use a DataOutputStream to write the data, then Java guarantees that you can accu原创 2009-04-02 10:47:00 · 745 阅读 · 0 评论 -
Thinking in java 4th Edition 读书笔记-I/O(2)
page 654Exercise 4: (2) Use Directory.walk( ) to sum the sizes of all files in a directory tree whose names match a particular regular expression. import java.util.regex.*;import java.io.*;i原创 2009-03-27 17:01:00 · 835 阅读 · 0 评论 -
Thinking in java 4th Edition 读书笔记-Concurrency(3)
1.However, implementing an interface does allow you to inherit from a different class, whereas inheriting from Thread does not.Notice that start( ) is called within the constructor, but you should be原创 2009-05-05 17:03:00 · 553 阅读 · 0 评论