<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ### OCA考試大綱 #### Java Basics 基礎 - Define the scope of variables 定義變量的作用范圍 - Define the structure of a Java class 定義一個 Java 類的結構 - Create executable Java applications with a main method; run a Java program from the command line; produce console output 創建包含一個 main 方法的可執行 Java 應用程序;從命令行運行一個 Java 程序;產生控制臺輸出 - Import other Java packages to make them accessible in your code 導入其他 Java 包使其可在你的代碼中使用 - Compare and contrast the features and components of Java such as: platform independence, object orientation, encapsulation, etc. 比較和對比 Java 的特性和組件,例如:平臺獨立性,面向對象,封裝等 #### Using Operators and Decision Constructs 使用操作符和條件判斷結構 - Use Java operators; use parentheses to override operator precedence 使用操作符;使用括號覆蓋操作符優先級 - Test equality between Strings and other objects using `==` and `equals ()` 使用 `==` 和 `equals()` 檢查字符串和其他對象之間的相等性 - Create if and if/else and ternary constructs 創建 if 和 if/else 已經三元(條件)結構 - Use a switch statement 使用 switch 語句 #### Using Loop Constructs 使用循環結構 - Create and use `while` loops 創建并使用 while 循環 - Create and use `for` loops including the enhanced for loop 創建并使用 for 循環,包括增強版 for 循環 - Create and use do/while loops 創建并使用do/while 循環 - Compare loop constructs 比較循環結構 - Use `break` and `continue` 使用 break 和 continue #### Working with Inheritance 使用繼承 - Describe inheritance and its benefits 描述繼承及其好處 - Develop code that makes use of polymorphism; develop code that overrides methods; differentiate between the type of a reference and the type of an object 開發應用到了多態的代碼;開發重寫方法的代碼;區分引用的類型和對象的類型 - Determine when casting is necessary 確定何時類型轉換時必要的 - Use `super` and `this` to access objects and constructors 使用 super 和 this 訪問對象和構造方法 - Use abstract classes and interfaces 使用抽象類和接口 #### Working with Selected classes from the Java API 使用從 Java API 中選擇的類 - Manipulate data using the `StringBuilder` class and its methods 使用 StringBuilder 類及其方法去操作數據 - Create and manipulate Strings 創建并操作字符串 - Create and manipulate calendar data using classes from `java.time.LocalDateTime`, `java.time.LocalDate`, `java.time.LocalTime`,`java.time.format.DateTimeFormatter`, `java.time.Period` 創建并操縱日歷數據,使用這些類:`java.time.LocalDateTime`, `java.time.LocalDate`, `java.time.LocalTime`,`java.time.format.DateTimeFormatter`, `java.time.Period` - Declare and use an `ArrayList` of a given type 聲明并使用某個類型的 `ArrayList` - Write a simple Lambda expression that consumes a Lambda Predicate expression 編寫一個簡單的 Lambda 表達式,要求一個 Lambda Predicate 表達式 #### Working With Java Data Types 使用 Java 數據類型 - Declare and initialize variables (including casting of primitive data types) 聲明并初始化變量(包括原始數據類型的轉換) - Differentiate between object reference variables and primitive variables 區分對象引用變量和原始變量 - Know how to read or write to object fields 知道如何讀或寫對象字段 - Explain an Object's Lifecycle (creation, "dereference by reassignment" and garbage collection) 解釋一個對象的生命周期(創建,“重新賦值解引用” 和垃圾回收) - Develop code that uses wrapper classes such as `Boolean`, `Double`, and `Integer` 開發使用封裝類的代碼,例如 Boolean, Double 和 Integer #### Creating and Using Arrays 創建并使用數組 - Declare, instantiate, initialize and use a one-dimensional array 聲明,實例化,初始化以及使用一維數組 - Declare, instantiate, initialize and use multi-dimensional arrays 聲明,實例化,初始化以及使用多維數組 #### Working with Methods and Encapsulation 使用方法和封裝 - Create methods with arguments and return values; including overloaded methods 創建帶參數和返回值的方法 - Apply the `static` keyword to methods and fields 在方法和字段應用 static 關鍵字 - Create and overload constructors; differentiate between default and user defined constructors 創建并重載構造方法;區分默認和用戶定義構造方法 - Apply access modifiers 應用訪問修飾符 - Apply encapsulation principles to a class 對類應用封裝原則 - Determine the effect upon object references and primitive values when they are passed into methods that change the values 確定對象引用和原始變量傳遞到會改變值的方法時的效果 (考察引用傳遞還是值傳遞) #### Handling Exceptions 處理異常 - Differentiate among checked exceptions, unchecked exceptions, and Errors 區分檢查異常,非檢查異常以及錯誤 - Create a try-catch block and determine how exceptions alter normal program flow 創建一個 try-catch 語句塊并確定異常時如何改變正常的程序控制流的 - Describe the advantages of Exception handling 描述異常處理的優點 - Create and invoke a method that throws an exception 創建并調用一個會拋出異常的方法 - Recognize common exception classes (such as `NullPointerException`, `ArithmeticException`, `ArrayIndexOutOfBoundsException`, `ClassCastException`) 識別常見的異常類(例如 空指針異常,算術異常,數組越界異常,類型轉換異常) #### Assume the following: 默認以下情況: - **Missing package and import statements:** If sample code do not include package or import statements, and the question does not explicitly refer to these missing statements, then assume that all sample code is in the same package, or import statements exist to support them. **缺失的包和導入語句:**如果示例代碼沒有包含包或導入語句,并且問題沒有明示這些缺失的語句,那么認為所有的示例代碼是在同一個包,或者存在導入它們的導入語句。 - No file or directory path names for classes: 類沒有文件名或者目錄路徑名: If a question does not state the file names or directory locations of classes, then assume one of the following, whichever will enable the code to compile and run: 如果問題沒有提及到類的文件名或者目錄位置,那么假設以下幾點,能讓代碼編譯并運行即可: - All classes are in one file 所有類是在同一個文件 - Each class is contained in a separate file, and all files are in one directory 每個類分別存在與不同的文件,并且所有文件都在同一個目錄 - **Unintended line breaks:** Sample code might have unintended line breaks. If you see a line of code that looks like it has wrapped, and this creates a situation where the wrapping is significant (for example, a quoted String literal has wrapped), assume that the wrapping is an extension of the same line, and the line does not contain a hard carriage return that would cause a compilation failure. **意外的換行:**示例代碼可能由非預期的換行。如果你看到一行代碼看起來軟換行了,并且它造成了一個情形,換行的影響是重要的(例如,一個雙引號括起來的字符串常量換行了),假設那個換行是同一行的延申,且該行不包含導致編譯失敗的硬回車換行。 - **Code fragments:** A code fragment is a small section of source code that is presented without its context. Assume that all necessary supporting code exists and that the supporting environment fully supports the correct compilation and execution of the code shown and its omitted environment. **代碼片段:**一個代碼片段是不帶有上下文出現的一小節代碼片段。假設所有必要的支持代碼存在并且支持的環境能保證呈現的代碼片段及其省略的部分能夠正確執行。 - **Descriptive comments:** Take descriptive comments, such as "setter and getters go here," at face value. Assume that correct code exists, compiles, and runs successfully to create the described effect. **描述性注釋:**將描述性注釋,例如“setter 和 getters 在這里” 按字面意思理解。假設正確的代碼存在,編譯、運行成功產生所描述的效果。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看