SCJP复习笔记(一)J2SE概要

本文介绍了Java编程中的核心概念,包括类、对象、实例变量及方法等基本构成元素,并阐述了标识符与关键字的使用规范。此外,还探讨了继承与接口的概念,以及Java中类的组织方式与访问控制。

JAVA Reresher

1> Class ----类

2> Object ----实例对象

3> State(instance variables)----状态:实例变量

4> behavior (Method) ----行为:方法

 

Identifiers and Keywords

KEY WORD: identifiers(标示符)           legal(语法约束)          keywords(保留字) 

KEY INFO : Java programmers (and Sun) have created conventions for naming methods, variables, and classes.

 

 

Inheritance

KEY INFO : The superclass knows nothing of the classes that inherit from it,

 but all of the subclasses that inherit from the superclass must explicitly declare the inheritance relationship.

but is also free to override superclass methods to define more specific behavior.

 

 

 Interface

KEY INFO : Interfaces are like a 100-percent abstract superclass that defines the methods a subclass must support, but not how they must be supported.

 

Finding Other Classes

KEY INFO : Java organizes classes into packages, and uses import statements to give programmers a consistent way to manage naming of, and access to, classes they need.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值