Java中有哪些不同的關鍵字型別?


以下是 java 中的不同關鍵字型別-

  • 訪問修飾符 - private、protected、public。
  • 類、方法、變數修飾符- abstract、class、extends、final、implements、interface、native、new、static、strictfp、synchronized、transient、volatile。
  • 流控制- break、case、continue、default、do、else、for、if、instanceof、return、switch、while。
  • 包控制- import、package。
  • 基本型別- boolean、byte、char、double、float、int、long、short。
  • 錯誤處理- assert、catch、finally、throw、throws、try。
  • 列舉-enum。
  • 其他- super、this、void。
  • 未用- const、goto。

更新於: 18-Feb-2020

2K+ 瀏覽量

開啟您的職業生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.