Skip to content

hieptran1812/OOP-with-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OOP-with-Java-PTIT

Ôn tập Lập trình hướng đối tượng bằng ngôn ngữ Java

Mục lục

Elementary Programming

  1. Introduction
  2. Identifiers
  3. Variables
  4. Assignment Statements and Assignment Expressions
  5. Named Constants
  6. Naming Conventions
  7. Numeric Data Types and Operations
  8. Numeric Literals
  9. Evaluating Expressions and Operator Precedence
  10. Augmented Assignment Operators
  11. Increment and Decrement Operators
  12. Numeric Type Conversions
  13. Common Errors and Pitfalls

Selections

  1. Introduction
  2. Boolean Data Type
  3. if Statements
  4. Two-Way if-else Statements
  5. Nested if and Multi-Way if-else Statements
  6. Common Errors and Pitfalls
  7. Generating Random Numbers
  8. Case Study: Computing Body Mass Index
  9. Case Study: Computing Taxes
  10. Logical Operators
  11. Case Study: Determining Leap Year
  12. Case Study: Lottery
  13. switch Statements
  14. Conditional Operators
  15. Operator Precedence and Associativity
  16. Debugging

Mathematical Functions, Characters, and Strings

  1. Introduction
  2. Common Mathematical Functions
  3. Character Data Type and Operations
  4. The String Type
  5. Case Studies
  6. Formatting Console Output

Loops

  1. Introduction
  2. The while Loop
  3. Case Study: Guessing Numbers
  4. Loop Design Strategies
  5. Controlling a Loop with User Confirmation or a Sentinel Value
  6. The do-while Loop
  7. The for Loop
  8. Which Loop to Use?
  9. Nested Loops
  10. Minimizing Numeric Errors
  11. Case Studies
  12. Keywords break and continue
  13. Case Study: Checking Palindromes
  14. Case Study: Displaying Prime Numbers

Methods

  1. Introduction
  2. Defining a Method
  3. Calling a Method
  4. void vs. Value-Returning Methods
  5. Passing Parameters by Values
  6. Modularizing Code
  7. Case Study: Converting Hexadecimals to Decimals
  8. Overloading Methods
  9. The Scope of Variables
  10. Case Study: Generating Random Characters
  11. Method Abstraction and Stepwise Refinement

Single-Dimension Arrays

  1. Introduction
  2. Array Basics
  3. Case Study: Analyzing Numbers
  4. Case Study: Deck of Cards
  5. Copying Arrays
  6. Passing Arrays to Methods
  7. Returning an Array from a Method
  8. Case Study: Counting the Occurrences of Each Letter
  9. Variable-Length Argument Lists
  10. Searching Arrays
  11. Sorting Arrays
  12. The Arrays Class
  13. Command-Line Arguments

Multidimensional Arrays

  1. Introduction
  2. Two-Dimensional Array Basics
  3. Processing Two-Dimensional Arrays
  4. Passing Two-Dimensional Arrays to Methods
  5. Case Study: Grading a Multiple-Choice Test
  6. Case Study: Finding the Closest Pair
  7. Case Study: Sudoku
  8. Multidimensional Arrays

Objects and Classes

  1. Introduction
  2. Defining Classes for Objects
  3. Example: Defining Classes and Creating Objects
  4. Constructing Objects Using Constructors
  5. Accessing Objects via Reference Variables
  6. Using Classes from the Java Library
  7. Static Variables, Constants, and Methods
  8. Visibility Modifiers
  9. Data Field Encapsulation
  10. Passing Objects to Methods
  11. Array of Objects
  12. Immutable Objects and Classes
  13. The Scope of Variables
  14. The this Reference

Object-oriented Thinking

  1. Introduction
  2. Class Abstraction and Encapsulation
  3. Thinking in Objects
  4. Class Relationships
  5. Case Study: Designing the Course Class
  6. Case Study: Designing a Class for Stacks
  7. Processing Primitive Data Type Values as Objects
  8. Automatic Conversion between Primitive Types and Wrapper Class Types
  9. The BigInteger and BigDecimal Classes
  10. The String Class
  11. The StringBuilder and StringBuffer Classes

Inheritance and Polymorphism

  1. Introduction
  2. Superclasses and Subclasses
  3. Using the super Keyword
  4. Overriding Methods
  5. Overriding vs. Overloading
  6. The Object Class and Its toString() Method
  7. Polymorphism
  8. Dynamic Binding
  9. Casting Objects and the instanceof Operator
  10. The Object’s equals Method
  11. The ArrayList Class
  12. Useful Methods for Lists
  13. Case Study: A Custom Stack Class
  14. The protected Data and Methods
  15. Preventing Extending and Overriding

Exception handling and text I/o

  1. Introduction
  2. Exception-Handling Overview
  3. Exception Types
  4. More on Exception Handling
  5. The finally Clause
  6. When to Use Exceptions
  7. Rethrowing Exceptions
  8. Chained Exceptions
  9. Defining Custom Exception Classes
  10. The File Class
  11. File Input and Output
  12. Reading Data from the Web
  13. Case Study: Web Crawler

Abstract classes and Interfaces

  1. Introduction
  2. Abstract Classes
  3. Case Study: the Abstract Number Class
  4. Case Study: Calendar and GregorianCalendar
  5. Interfaces
  6. The Comparable Interface
  7. The Cloneable Interface
  8. Interfaces vs. Abstract Classes
  9. Case Study: The Rational Class
  10. Class-Design Guidelines

About

Ôn tập Lập trình hướng đối tượng bằng ngôn ngữ Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published