# Java 學習系列

## Java 學習系列

- [目錄](https://java.4-x.tw/master.md)
- [參考書籍](https://java.4-x.tw/newbie/book.md)
- [安裝 Java](https://java.4-x.tw/newbie/java-000.md)
- [安裝 Eclipse IDE](https://java.4-x.tw/newbie/java-001.md)
- [首次操作 Eclipse](https://java.4-x.tw/newbie/java-002.md)
- [初學常見錯誤 ＆ 提高可讀性](https://java.4-x.tw/newbie/java-003.md)
- [第一支程式：新建檔案](https://java.4-x.tw/java-01/createfile.md)
- [第一支程式：Hello Java](https://java.4-x.tw/java-01/hellojava.md)
- [變數與輸出](https://java.4-x.tw/java-02/java-02-1.md)
- [重點整理](https://java.4-x.tw/java-02/java-02-2.md)
- [認識變數與資料型態](https://java.4-x.tw/java-03-1.md)
- [溢位](https://java.4-x.tw/java-03-2.md)
- [更多資料型態](https://java.4-x.tw/java-03-3.md)
- [資料型態的轉換](https://java.4-x.tw/java-03-4.md)
- [運算子、運算式](https://java.4-x.tw/java-04/java-04-1.md)
- [程式範例](https://java.4-x.tw/java-04/java-04-2.md)
- [選擇性敘述](https://java.4-x.tw/java-05/java-05-1.md)
- [迴圈](https://java.4-x.tw/java-05/java-05-2.md)
- [迴圈的跳離](https://java.4-x.tw/java-05/java-05-3.md)
- [一維陣列](https://java.4-x.tw/java-06/java-06-1.md)
- [二維與多維陣列](https://java.4-x.tw/java-06/java-06-2.md)
- [函數與引數](https://java.4-x.tw/java-07/java-07-1.md)
- [函數傳遞陣列](https://java.4-x.tw/java-07/java-07-2.md)
- [函數多載](https://java.4-x.tw/java-07/java-07-3.md)
- [函數 SWAP](https://java.4-x.tw/java-07/java-swap.md)
- [定義類別](https://java.4-x.tw/java-08/java-08-1.md)
- [使用類別](https://java.4-x.tw/java-08/java-08-2.md)
- [類別中的函數成員相互呼叫](https://java.4-x.tw/java-08/java-08-3.md)
- [類別中使用 this](https://java.4-x.tw/java-08/java-08-4.md)
- [練習：建立圓形類別](https://java.4-x.tw/java-08/java-08-p.md)
- [傳遞引數與回傳值](https://java.4-x.tw/java-08/java-08-5.md)
- [多引數](https://java.4-x.tw/java-08/java-08-6.md)
- [類別中函數的多載](https://java.4-x.tw/java-08/java-08-7.md)
- [類別成員中的公有與私有](https://java.4-x.tw/java-08/java-08-8.md): public & private
- [認識 建構元](https://java.4-x.tw/java-09/java-09-1.md)
- [建構元的多載](https://java.4-x.tw/java-09/java-09-2.md)
- [建構元間的呼叫 - 透過this](https://java.4-x.tw/java-09/java-09-3.md)
- [建構元中的公有與私有](https://java.4-x.tw/java-09/java-09-4.md)
- [實例變數 與 實例函數](https://java.4-x.tw/java-10/java-10-1.md): 類別變數 與 類別函數 他們 和 實例變數 實例函數   聽起來沒很像是類似的東西，但功能上卻大不同。
- [類別變數](https://java.4-x.tw/java-10/java-10-2.md)
- [類別函數](https://java.4-x.tw/java-10/java-10-3.md)
- [認識類別的繼承](https://java.4-x.tw/java-11/java-11-1.md)
- [範例：類別的繼承](https://java.4-x.tw/java-11/java-11-2.md)
- [類別繼承中的建構元呼叫](https://java.4-x.tw/java-11/java-11-3.md)
- [Protected members](https://java.4-x.tw/java-11/java-protected-members.md)
- [Overriding](https://java.4-x.tw/java-11/java-overriding.md)
- [super() 與 this()](https://java.4-x.tw/java-11/java-super-and-this.md)
- [設定終止繼承](https://java.4-x.tw/java-11/java-11-4.md)
- [認識抽象類別](https://java.4-x.tw/java-12/java-12-1.md)
- [範例：抽象類別](https://java.4-x.tw/java-12/java-12-2.md)
- [使用抽象類別型態的變數建立物件](https://java.4-x.tw/java-12/java-12-3.md)
- [認識介面](https://java.4-x.tw/java-13/java-13-1.md)
- [範例：介面](https://java.4-x.tw/java-13/java-13-2.md)
- [介面中的多重繼承](https://java.4-x.tw/java-13/java-13-3.md)
- [介面的延伸](https://java.4-x.tw/java-13/java-13-4.md)
- [認識例外](https://java.4-x.tw/java-14/java-14-1.md)
- [例外處理](https://java.4-x.tw/java-14/java-14-2.md)
- [範例：例外處理](https://java.4-x.tw/java-14/java-14-3.md)
- [認識例外類別](https://java.4-x.tw/java-14/java-14-4.md)
- [例外類別捕捉多個例外](https://java.4-x.tw/java-14/java-14-5.md)
- [於程式中拋出例外](https://java.4-x.tw/java-14/java-14-6.md)
- [於指定函數拋出例外](https://java.4-x.tw/java-14/java-14-7.md)
- [自定義例外類別](https://java.4-x.tw/java-14/java-14-8.md)
- [認識多執行緒](https://java.4-x.tw/java-15/java-15-1.md)
- [啟動執行緒](https://java.4-x.tw/java-15/java-15-2.md)
- [實作 RUNNABLE 介面](https://java.4-x.tw/java-15/java-15-3.md)
- [執行緒生命週期](https://java.4-x.tw/java-15/java-15-4.md)
- [凍結執行緒 sleep()](https://java.4-x.tw/java-15/java-15-sleep.md)
- [凍結執行緒 join()](https://java.4-x.tw/java-15/java-15-join.md)
- [執行緒的順序](https://java.4-x.tw/java-15/java-15-5.md)
- [同步處理 Synchronized](https://java.4-x.tw/java-15/java-15-6.md)
- [產生不重複之亂數](https://java.4-x.tw/java-exercise/java-random.md): 本篇記錄解題時遇到的題目：如何產生不重複的1-10的數字
- [後記](https://java.4-x.tw/end.md)
- [致謝](https://java.4-x.tw/thanks.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://java.4-x.tw/master.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
