1. 程式人生 > >Java學習筆記(自選修課PPT)

Java學習筆記(自選修課PPT)

  • abstract break byte boolean catch case class char continue default double do else extends false final float for finally if import implements int interface instanceof long length native new null package private protected public final return switch synchronized short static super try true this throw throws threadsafe transient void while
  • 資料和返回值型別:int, void, return……
  • 包/類/成員/介面:package, class, interface
  • 迴圈及迴圈控制:if, switch, break
  • 保留詞(無含義但不能使用):goto, const
  • 在Java中,true、false和null都是小寫的。區別於 C++中大寫的TRUE、FALSE和NULL。
  • 所有的資料型別所佔用的位元組數都是固定的,並 且和實現無關的,因此在Java中沒有sizeof操作符。