Object-Oriented Programming Concepts 
面向对象编程概念
What Is an Object?
什么是对象?
What Is a Class?
什么是类?
What Is Inheritance?
什么是继承?
What Is an Interface?
什么是接口?
What Is a Package?
什么是包?
Questions and Exercises: Object-Oriented Programming Concepts
面向对象概念问题和练习题
Language Basics 
语言基础
Variables
变量
Primitive Data Types
原始数据类型
Arrays
数组
Summary of Variables
变量概要
Questions and Exercises: Variables
变量问题与练习题
Operators
操作符
Assignment, Arithmetic, and Unary Operators
赋值运算符, 算术运算符, 和一元运算符
Equality, Relational, and Conditional Operators 
复合运算符, 关系运算符, 和条件运算符
Bitwise and Bit Shift Operators
位运算和位移运算
Summary of Operators
运算符概要
Questions and Exercises: Operators
操作符问题和练习题
Expressions, Statements, and Blocks
表达式, 语句, 和程序块
Questions and Exercises: Expressions, Statements, and Blocks
表达式、语句、程序块问题和练习题
Control Flow Statements
流程控制语句
The if-then and if-then-else Statements
if-then和if-then-else语言
The switch Statement
switch 开关语句
The while and do-while Statements
while和do-while循环语句
The for Statement
for循环语句
Branching Statements
分支语句
Summary of Control Flow Statements
流程控制语句概要
Questions and Exercises: Control Flow Statements
流程控制语句问题和练习题
Classes and Objects
类和对象
Classes
Declaring Classes
声明类
Declaring Member Variables
声明成员变量
Defining Methods
定义方法
Providing Constructors for Your Classes
为您的类提供构造方法
Passing Information to a Method or a Constructor
类方法或构造函数的信息传递
Objects
对象
Creating Objects
创建对象
Using Objects
使用对象
More on Classes
关于类更多
Returning a Value from a Method
从方法中返回值
Using the this Keyword
使用this关键词
Controlling Access to Members of a Class
控制类成员的数据存取
Understanding Instance and Class Members
理解实例化和类成员
Initializing Fields
初始化字段
Summary of Creating and Using Classes and Objects
创建使用类和对象概要
Questions and Exercises: Classes
类问题和练习题
Questions and Exercises: Objects
对象问题和练习题
Nested Classes
嵌套类
Inner Class Example
内部类举例
Summary of Nested Classes
嵌套类概要
Questions and Exercises: Nested Classes
嵌套类的问题和练习题
Enum Types
枚举类型
Questions and Exercises: Enum Types
枚举类型的问题和练习题
Annotations
注释
Questions and Exercises: Annotations
注释问题和练习题
Interfaces and Inheritance 
接口和继承
Interfaces
接口
Defining an Interface
定义一个接口
Implementing an Interface
执行一个接口
Using an Interface as a Type
把接口作为一个类型使用
Rewriting Interfaces
重写接口
Summary of Interfaces
接口概要
Questions and Exercises: Interfaces
接口问题和练习题
Inheritance
继承
Overriding and Hiding Methods
覆写和隐藏方法
Hiding Fields
隐藏字段
Using the Keyword super
使用super关键词
Object as a Superclass
对象作为超类
Writing Final Classes and Methods
最终类和方法
Abstract Methods and Classes
抽象方法和类
Summary of Inheritance
继承概要
Questions and Exercises: Inheritance
继承问题和练习题
Numbers and Strings 
数组和字符串
Numbers
数组
The Numbers Classes
数组类
Formatting Numeric Print Output
格式化数组打印输入
Beyond Basic Arithmetic
重载算术运算符
Summary of Numbers
数组概要
Questions and Exercises: Numbers
数组问题和练习题
Characters
字符
Strings
字符串
Converting Between Numbers and Strings
数组和字符串相互转换
Manipulating Characters in a String
在一个字符串中操纵字符
Comparing Strings and Portions of Strings
字符串比较和字符串分解
The StringBuilder Class
字符串构造类
Summary of Characters and Strings
字符和字符串概要
Questions and Exercises: Characters and Strings
字符和字符串的问题和练习题
Generics 
通用型
Introduction
介绍
Generic Types
通用类型
Generic Methods and Constructors
通用方法和构造函数
Bounded Type Parameters
Subtyping
Wildcards
Type Erasure
Summary of Generics
Questions and Exercises: Generics
Packages 
Creating and Using Packages
创建和使用包
Creating a Package
创建包
Naming a Package
命名包
Using Package Members
使用包成员
Managing Source and Class Files
管理源程序和类文件
Summary of Creating and Using Packages
创建和使用包概要
Questions and Exercises: Creating and Using Packages
创建和使用包的问题和练习题
Trail: Learning the Java Language  JAVA语言教程

This trail covers the fundamentals of programming in the Java programming language.

这个教程涵盖了JAVA程序语言的编程基础。

gaohf_javaObject-Oriented Programming Concepts teaches you the core concepts behind object-oriented programming: objects, messages, classes, and inheritance. This lesson ends by showing you how these concepts translate into code. Feel free to skip this lesson if you are already familiar with object-oriented programming.

面向对象编程概念教给你面向对象编程背后的核心概念:对象,消息,类和继承。这一讲之后将向你展示如何使用这些概念转化为代码。如果你已经对面向对象编程很熟悉可以跳过此讲。

gaohf_javaLanguage Basics describes the traditional features of the language, including variables, arrays, data types, operators, and control flow.

语言基础描述语言的基础特征,包括变量,数组,和数据类型,操作符和控制流程。

gaohf_javaClasses and Objects describes how to write the classes from which objects are created, and how to create and use the objects.

类和对象描述如何从已经创建的对象中写出类,和如何创建和使用对象。

gaohf_javaInterfaces and Inheritance describes interfaces—what they are, why you would want to write one, and how to write one. This section also describes the way in which you can derive one class from another. That is, how a subclass can inherit fields and methods from a superclass. You will learn that all classes are derived from the Object class, and how to modify the methods that a subclass inherits from superclasses.

接口和继承描述接口是什么,为什么你要去写它以及如何写它。这一章节同时描述你如何从一个类生成另一个类的方式。这就是,一个子类从超类中继承属性和方法。你将学到从对象中提取的所有类,并且学会如何修改一个从超类中继承的子类的方法。

gaohf_javaNumbers and Strings This lesson describes how to use Number and String objects The lesson also shows you how to format data for output.

数组和字符串 这一讲将描述如何使用数组和字符串,这一讲同时向你展示如何格式化数据输出。

gaohf_javaGenerics are a powerful feature of the Java programming language. They improve the type safety of your code, making more of your bugs detectable at compile time.

通用型是JAVA编程语言的强大特性。它提升了你代码中的数据类型的安全性,同时能在你编译的时候检测出更多的bug。

gaohf_javaPackages are a feature of the Java programming language that help you to organize and structure your classes and their relationships to one another.

是JAVA编程语言的一个特征,它将帮你组织和构架你的类及它们之间的关系。

 

宏飞网络是你学习web开发、测试web程序实例、和培养职业技能的首选网站。我们提供例子也许有些简单,但对理解基本概念有帮助。

我们尽量避免在教程、参考及例子中出现错误,但不能保证所有的内容都是正确的。

你使用本网站时,我们默认你已经阅读并接受了我们的隐私政策。

Copyright 2003-2011宏飞网络 版权所有