JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 新手區 » 學習筆記  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
leihehong





發文: 3
積分: 0
於 2008-01-25 21:55 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
大侠!
我买你滴书看了.但是买了没几天6.0的书就书了.内容有点小变化.


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
iboss39





發文: 1
積分: 0
於 2008-02-17 08:59 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Smile
我看了良葛格的文章之後,發現內容很親切,淺顯易懂,篇幅也不會冗長,所以很喜歡看,
但是讀到 "被保護的(protected)成員"這章時,覺得怪怪的
http://caterpillar.onlyfun.net/Gossip/JavaGossip-V1/ProtectedMember.htm
"事實上,對於同一個 套件(package) 下的類別,可以直接呼叫彼此的protected成員,而對於不同套件(package)下的成員,不能呼叫彼此的protected成員。"

拙見:如果是protected,則只有在同一個套件的"子類別"可以用,並非都可直接呼叫?
如果沒有繼承關係的話則不行 ?

如果在定義成員時沒有設定任何的存取修飾,則為預設(default)的存取權限,預設存取權限可以在同一個套件(package)中的其它類別直接存取,但在子類別中不能被直接存取。 "

拙見:子類別還是可以存取吧?只要是同一個 package?

小弟用的是jdk1.6.0_01 和JCreator的IDE測試


iboss39 edited on 2008-02-17 09:19
reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:iboss39]
caterpillar

良葛格

版主

發文: 2613
積分: 70
於 2008-02-17 10:53 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
iboss39 wrote:
拙見:如果是protected,則只有在同一個套件的"子類別"可以用,並非都可直接呼叫?
如果沒有繼承關係的話則不行 ?


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package mypackage;
 
public class Parent {
  protected int var;
}
 
package mypackage;
 
public class Main {
  public static void main(String[] args) {
    Parent p = new Parent();
    p.var = 10; // OK! 
                System.out.print(p.var); // OK
  }
}



拙見:子類別還是可以存取吧?只要是同一個 package?


Yes! 你是對的,感謝提出錯誤,將列為堪誤!Orz...


reply to postreply to post
良葛格學習筆記
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
qepwqy





發文: 4
積分: 0
於 2008-02-26 18:23 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
呵呵,不久前才买了这本书。还是习惯看纸质的,谢谢老师。

reply to postreply to post
好好学习,天天向上!
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
onlythecomet





發文: 1
積分: 0
於 2008-03-01 18:27 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
學校這學期要教 JAVA 剛好在網路上找到這完備的學習空間
真是太好了!


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
sd080134





發文: 1
積分: 0
於 2008-03-13 00:18 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
初来乍到, 看了顶下!

reply to postreply to post
做出选择,执行
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
Kirpheaice





發文: 6
積分: 0
於 2008-03-14 08:14 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
感謝繁中的分享.
像原文真是太辛苦了.
有中文可看時要好好感謝加針惜啊~~


reply to postreply to post
Kirpheaice@Relax@巴納札爾
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
power272000





發文: 2
積分: 0
於 2008-03-23 10:33 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
謝謝大大提供
but 無法下載JavaGossip-V2.zip
我是用迅雷工具下載


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
andyskycom





發文: 1
積分: 0
於 2008-04-04 12:41 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢楼主的资料,非常感谢

reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
bootupnow





發文: 4
積分: 0
於 2008-04-11 22:54 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
細細體會,慢慢消化之,謝謝caterpillar大大的無私奉獻!

reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
錫麟





發文: 8
積分: 0
於 2008-04-21 21:13 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
版主.真是用心.資料還重新整理.我看了不只感動.只能說.有你真好

reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
yvess





發文: 3
積分: 0
於 2008-06-02 13:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list

大大 實在是不行下ㄝ...@@ 可以起教一下 這是甚麼樣的問題嗎?


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
jeff1019





發文: 3
積分: 0
於 2008-06-16 14:29 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我是初學者
不曉得這本書對我來說會不會太深
但還是由衷的感謝您的提供
3Q~~


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
小小高





發文: 1
積分: 0
於 2008-06-20 06:25 user profilesend a private message to usersend email to 小小高reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
這本學習筆記真是太好用了,感謝!感謝!再感謝!!!Big SmileBig Smile

reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
visualsho





發文: 2
積分: 0
於 2008-06-30 16:18 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
感謝您的提共,我也算個初心者

來這邊取經!!!

剩下的就只靠我們來自己努力了

謝謝


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
hjj0529





發文: 3
積分: 0
於 2008-07-11 03:14 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看过楼主的书 本人新手 楼主写得很好 学习了

reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
wayne770630





發文: 3
積分: 0
於 2008-07-15 10:06 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
版主真的很用~~照顧新手壓~
謝謝分享唷~我會好好學習的


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
水凝冰释





發文: 5
積分: 0
於 2008-07-24 21:51 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我非常喜歡良葛格的JAVA學習筆記,特地買了一本。
因為我在大陸,就買了清華大學出版社的了。


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
mysteryseal





發文: 3
積分: 0
於 2008-08-17 15:27 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
偶就是买了这本书,可是偶这里没有光驱,不知道哪里有光盘镜像可以下载的!

reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:mysteryseal]
caterpillar

良葛格

版主

發文: 2613
積分: 70
於 2008-08-17 17:04 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
範例檔:
http://uploads.bizhat.com/file/259925


reply to postreply to post
良葛格學習筆記
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
lonelyscud





發文: 4
積分: 0
於 2008-09-03 23:19 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
新手學習中,非常感謝版主的無私奉獻。

學習中...


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
ccman0121





發文: 4
積分: 0
於 2008-10-11 21:00 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
版主大大你好
想請教一個問題為何我執行"給C 使用者的第一個Java 程式HelloWorldForC.java "會出現錯誤訊息,訊息如下:
java.lang.Error: Unresolved compilation problem:
  The method printf(String, String) is undefined for the type PrintStream

  at HelloWorldForC.main(HelloWorldForC.java:4)
Exception in thread "main"

能告知原因嗎?因為初學所以有很多error masage不懂,我也都是照著大大的筆記一步步來學習~麻煩你了


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
詭異





發文: 1
積分: 0
於 2008-10-18 15:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
這個網站上的文件我下載不了。誰可以幫忙把Java Gossip(上) 文件下載
Java Gossip(下) 文件下載
這兩個文件發送到x024@vip.qq.com這個郵箱中去。小弟在此感謝了


reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
augustoyeung





發文: 1
積分: 0
於 2008-11-12 14:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
多謝大大ShyShy

reply to postreply to post
作者 Re:良葛格 Java 學習筆記 [Re:caterpillar]
zdf8013





發文: 3
積分: 0
於 2008-12-03 17:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
xiexie 谢谢了 看了 学习了

reply to postreply to post
go to first page go to previous page  1   2   3   4   5   6   7   8  go to next page go to last page
» JWorld@TW »  Java 新手區 » 學習筆記

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8