網頁

2011年3月11日 星期五

ToWriteList

  1. java string constant/literal pool
    • String str = new String("abc"); 幾個 ojbects 會被產生?
  2. throw Exception, SecurityException, Throwable while method does not have thows declaration
    • 原本的 method 沒有寫要 thows Exception, 但為何可以 thow SecurityException?
    • 而且~~為何不能 thow Throwable?
  3. Eclipse will generate strange byte code that will call Display.getHeight() but not Canvas.getHeight()
    • try to reproduce this first!

沒有留言: