Alex's profileAlexPhotosBlogLists Tools Help

Blog


    November 22

    杂作

    趁supervisor最近没有新任务给我,就利用这几天阅读完4章Java资料。它们分别是Recursion, Exception Handling, Java Socket, 和 Binary I/O
     
    Recursion和C++的大同小异,都是围绕那几个不朽的问题做例子(n! , Fibonacci , Hanoi)
     
    对Exception Handling 印象最深算是ArrayIndexOutofBound Exception,因为写数据结构时不小心会遇到,有点的收获的就是finally statement
     
    Socket 对我来说是新概念。概括地说就是Stream / Datagram Socket问题,TCP / UDP 问题,输油管 / 运油车 问题.
     
    关于Binary I/O,在这本Java秘笈中提到了几种读写心法。但最感兴趣是BufferedInput/OutputStream和writebyte,在机上将copy例子中语句修改了一下,Java竟也可以实现类型为.jpg, .rmvb,  和 .mp3 的文件复制,且复制的文件可正常打开。不过,别高兴得太早,在netbeans上调试,Java还未那么神通广大到识别中文文件名并将其复制。由于写方式的不同,与C++对比,怀念的同时,脑子也不禁浮现对刷写文件阅读的充要条件问题。
     
     
    读得越多就会越怀念C++ 的特性,但毕竟时代无时无刻在变,就让自己继续中毒。   

     


    Comments (4)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Alexwrote:
    Introduction to Java Programming 那本是必看的。另一本就是Java the Complete Reference,只要7点前去就赶在图书馆关门前借到。不过在网上也能找到这本书,不过不是最新版。
    Nov. 25
    Ke Karl Liwrote:
    你在图书馆借的书?罢工了期间借书啊?
    Nov. 25
    Ke Karl Liwrote:
    你在图书馆借的书?罢工了期间借书啊?
    Nov. 25
    Ke Karl Liwrote:
    你在图书馆借的书?罢工了期间借书啊?
    Nov. 25

    Trackbacks

    The trackback URL for this entry is:
    http://reginaalex.spaces.live.com/blog/cns!4E38DBC3E5B6207D!404.trak
    Weblogs that reference this entry
    • None