当前位置:首页 > java > 正文

java入门必备单词

  • java
  • 2024-04-25 18:34:24
  • 6194

class: 类
object: 对象
method: 方法
variable: 变量
data type: 数据类型
keyword: 关键字
identifier: 标识符
数据类型
primitive types: 基本数据类型(如 int、boolean)
non-primitive types: 非基本数据类型(如 String、Object)
array: 数组
list: 列表
map: 映射
控制流
if: 如果
else: 否则
while: 循环
for: for 循环
switch: switch-case 语句
try-catch: 异常处理
面向对象编程
inheritance: 继承
polymorphism: 多态
encapsulation: 封装
abstraction: 抽象
集合
Set: 集合(不包含重复元素)
List: 列表(可包含重复元素)
Map: 映射(键值对集合)
Queue: 队列(先进先出)
Stack: 栈(先进后出)
IO
input: 输入
output: 输出
stream: 流
file: 文件
directory: 目录
其他常用单词
package: 包
import: 导入
public: 公共
private: 私有
protected: 受保护的
final: 最终的
static: 静态的