devdaily home
|
apple
|
java
|
perl
|
unix
|
directory
Enter your search terms
Submit search form
web
devdaily.com
Up:
java_oo
Previous:
1.11 OO Summary
Next:
2.1 Introduction
Contents
2. Day 2: The Java Programming Language
Subsections
2.1 Introduction
2.1.1 Chapter objectives
2.1.2 Java design goals
2.1.3 What is Java?
2.1.4 How/where to get Java
2.2 First Steps with Java
2.2.1 Java Commands and Utilities
2.2.2 A first application
2.2.3 main
2.3 Variables, constants, and keywords
2.3.1 Primitive data types
2.3.2 Literals
2.3.2.1
boolean
literals
2.3.2.2
char
literals
2.3.2.3
Floating-point
literals
2.3.2.4
String
literals
2.3.3 Constants
2.3.4 Reserved keywords
2.4 Arrays
2.5 Strings
2.5.1 String objects
2.5.2
StringBuffer
class
2.5.2.1 Exercise
2.5.2.2 Exercise
2.6 Comments and Javadoc
2.6.1 Types of comments
2.6.2 Javadoc comment tags
2.6.2.1 @see
2.6.2.2 @param
2.6.2.3 @return
2.6.2.4 @exception
2.6.2.5 @deprecated
2.6.2.6 @author
2.6.2.7 @version
2.6.2.8 @since
2.6.3 A comment example
2.6.4 Notes on Usage
2.7 Flow control and loops
2.7.1 Introduction
2.7.2 Objectives
2.7.3 Statements and blocks
2.7.3.1 Expressions that can be made into statements
2.7.3.2 Declaration statements
2.7.4 if-else
2.7.5 switch
2.7.6 while and do-while
2.7.7 for
2.7.8 Labels
2.7.9 break
2.7.10 continue
2.7.11 return
2.7.12 No
goto
Statement
2.8 Classes and objects
2.8.1 Introduction
2.8.2 Objectives
2.8.3 A Simple Class
2.8.4 Fields
2.8.5 Access Control and Inheritance
2.8.6 Creating Objects
2.8.7 Constructors
2.8.7.1 Constructor example
2.8.8 Methods
2.8.8.1 Parameter values
2.8.8.2 Using methods to control access
2.8.9 this
2.8.10 Overloading methods
2.8.11 Overriding methods
2.8.12 Static members
2.8.13 Initialization Blocks
2.8.14 Garbage collection and finalize
2.8.14.1 finalize
2.8.15 The
toString()
Method
2.8.16 Native Methods
2.9 Methods and parameters
2.9.1 Methods
2.9.1.1 Invoking a Method
2.9.1.2 The this Reference
2.10 Extending Classes
2.10.1 Introduction
2.10.2 Objectives
2.10.3 An extended class
2.10.4 A simple example
2.10.5 What protected really means
2.10.6 Constructors in extended classes
2.10.6.1 Constructor order dependencies
2.10.6.2 Constructor phases
2.10.6.3 Constructor phase example
2.10.7 Overriding methods, hiding fields, and nested classes
2.10.7.1 Overriding
2.10.7.2 The
super
keyword
2.10.8 Marking methods and classes
final
2.10.9 The
object
class
2.10.9.1 Object's utility methods
2.10.10 Anonymous classes
2.10.11 Abstract Classes and methods
2.10.12 Cloning objects
2.10.12.1 Three major considerations in writing a clone method
2.10.12.2 Four different attitudes a class can have towards clone
2.10.13 Extending classes: how and when
2.10.14 Designing a class to be extended
2.10.14.1 Bad effects of public fields
2.10.14.2 Non-final classes have two interfaces
2.11 Interfaces
2.11.1 Introduction
2.11.2 Objectives
2.11.3 An example interface
2.11.3.1 Nested classes and interfaces
2.11.4 Single inheritance versus multiple inheritance
2.11.5 Extending Interfaces
2.11.5.1 Name Conflicts
2.11.6 Implementing Interfaces
2.11.7 Using an Implementation
2.11.8 Marker Interfaces
2.11.9 When to Use Interfaces
2.11.9.1 Two Important Differences Between Interfaces and Abstract Classes
2.11.9.2 Interface or Abstract Class
2.12 Exceptions
2.12.1 Introduction
2.12.2 Objectives
2.12.3 Creating exception types
2.12.4 throw
2.12.5 The throws clause
2.12.5.1 Choices when invoking a method that has a throws clause
2.12.6 try, catch, and finally
2.12.6.1 finally
2.12.7 When to use exceptions
2.13 Packages
2.13.1 Introduction
2.13.2 Package Naming
2.13.3 Package Access
2.13.4 Package Contents
2.13.5 Examples
Up:
java_oo
Previous:
1.11 OO Summary
Next:
2.1 Introduction
Contents