Some point on learning Java
来源:互联网 发布:淘宝客服外包合算吗 编辑:程序博客网 时间:2024/04/30 05:35
1.By using Keyword Interface, java allow you to fully utilize the "One interface, multiple methods" aspect
of polymorphism.
2.Variables can be declared in an interface, but they are implicitly public,
static, and final.
Since a large program is typically held in a number of separate source files,
there needs to be a convenient way to make these constants available to each file.
In java, interface variables offer a solution.
3. Exception
In java, all exception classes are derived from a class called Throwable.
4. Using Java's Type wrappers to convert numeric strings
5. Enumeration
The key is to remember that each of the enumeration constants is an object of the
class in which it is defined.
6. Static import
By following import whith the keyword static ,an import statement can be used to import
the static members of a class or interface.
Note: 1. when an interface is declaired as public, it should reside in a file with the same name.
2. since the superclass of all exceptions is Throwable, to catch all possible exceptions, catch Throwable.
If you want to catch exceptions of both a superclass type and a subclass type, put the subclass first in the catch sequence.
of polymorphism.
2.Variables can be declared in an interface, but they are implicitly public,
static, and final.
Since a large program is typically held in a number of separate source files,
there needs to be a convenient way to make these constants available to each file.
In java, interface variables offer a solution.
3. Exception
In java, all exception classes are derived from a class called Throwable.
4. Using Java's Type wrappers to convert numeric strings
5. Enumeration
The key is to remember that each of the enumeration constants is an object of the
class in which it is defined.
6. Static import
By following import whith the keyword static ,an import statement can be used to import
the static members of a class or interface.
Note: 1. when an interface is declaired as public, it should reside in a file with the same name.
2. since the superclass of all exceptions is Throwable, to catch all possible exceptions, catch Throwable.
If you want to catch exceptions of both a superclass type and a subclass type, put the subclass first in the catch sequence.
- Some point on learning Java
- Some Point in learning Linux And Unix
- some links about learning java
- some tips on java programming
- 吴恩达 机器学习 笔记 some tips on applying machine Learning
- some knowledge point
- Some C Learning Notes
- PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
- A. Point on Spiral
- point on C_4 语句
- Point on Spiral CodeForces
- Some commands on AIX
- Some thinking on process
- Some arrangement on DOM
- Some tips on ubuntu
- Some thoughts on love
- Some advice on tests
- Some <!-- 注释-> on <%'注释 %>
- 再一次认识到C函数中参数传递:传值。
- Struts国际化处理(转)
- ASP.NET 2.0 中的异步页
- 兵败微硬盘
- spring技术手册阅读笔记(三) 使用CustomEditorConfigurer
- Some point on learning Java
- Form生成时激活的事件的先后顺序
- 如何测试文本是ANSI还是UNICODE?
- 如何区分内核对象和非内核对象?
- Sql问题
- 男人的想法
- 用程序设置打印纸张类型
- 句柄继承权起的作用?
- 如何用创建命名对象来判断应用程序是否已有一个实例在运行?