Tag:Java daily

  • Java daily exercises, make progress a little every day (24)

    Time:2022-5-7

    catalogue 1. The keyword used to create an object in the Java language is () 2. Creating a statement with a “close” label is (). 3、When is the text “Hi there”displayed? 4. Which of the following statements is true () 5. Give the following code, please give the result 6. Given the following java code, […]

  • Java daily exercises, make progress a little every day (25)

    Time:2022-4-28

    catalogue 1. The value of B after the execution of the following program segment is (). 2. The following statement about inheritance is correct 3. The following statement about dependency injection (DI) is incorrect () 4. In the following definitions of integer constant I, the correct one is () 5. Which of the following descriptions […]

  • Java daily exercises, make progress a little every day (26)

    Time:2022-4-25

    catalogue 1. Definition: String S1 = “UML”; String s2 = “uml”; String s3= new String(“uml”); String s4= new String(“uml”); Then, S1 = = S2; s3 == s4; s1. equals(s3); Whether the judgment is correct or not 2. If all the variables used are defined correctly, the illegal expression in the following options is () 3. […]

  • Java daily exercises, make progress a little every day (27)

    Time:2022-4-23

    catalogue 1. Compared with the default without access control, the public and protected modifiers expand the access scope of properties and methods, while the private modifier reduces this scope. 2. The following statement is wrong () 3. What can be used to decorate the interface are () 4. What’s right about access rights? ( ) […]

  • Java daily exercises, make progress a little every day (28)

    Time:2022-4-22

    catalogue 1. Write a method header for a method with no formal parameters and no return value of class AB, which can be called in ab.method (). The method header is in the form of (). 2. What are the errors in the following class definitions? () 3. What is the running result of the […]

  • Java daily exercises, make progress a little every day (29)

    Time:2022-4-19

    catalogue 1. The following are not access control characters () 2. The extension of Java source program file is () 3. The results of the following procedures are: 4. Given code: 5. The following describes the list interface, set interface and map interface. The error is? 6. What is the output of the following code? […]

  • Java daily exercises, make progress a little every day (30)

    Time:2022-4-17

    catalogue 1. The output of the following program segments is: 2. In Java 7, the following parameter types that cannot do switch () are? 3. What is the output of the following code? 4、What results from the following code fragment? 5. For the construction method, the following description is correct (). 6、JDK1. Before version 7, […]

  • Java daily exercises, make progress a little every day (31)

    Time:2022-3-25

    catalogue 1. There are the following code snippets: 2. For non runtime exceptions, they are generally not handled in the program and are handled automatically by the Java virtual machine. 3. The concept of multiple inheritance is implemented in Java through which of the following? () 4. For socket communication programming, the following description is […]

  • Java daily exercises, make progress a little every day (32)

    Time:2022-3-21

    catalogue 1. If a method or variable is at the “private” access level, its access scope is: 2. Will the code be printed? 3. What’s wrong with the following description of Hibernate core interface? 4. Which of the following statements is true? 5. In jdk1 After 5, the output of the following Java program is […]

  • Java daily exercises, make progress a little every day (33)

    Time:2022-3-19

    catalogue 1. If a method or variable is at the “private” access level, its access scope is: 2. Will the code be printed? 3. What’s wrong with the following description of Hibernate core interface? 4. Which of the following statements is true? 5. In jdk1 After 5, the output of the following Java program is […]

  • Java daily exercises, make progress a little every day (34)

    Time:2022-3-17

    catalogue 1. The modifier and abstract can be used as a class at the same time. ( ) 2. In the following description, the error is 3. As for the member variable of protected modification, the following statement is correct 4. Which of the following classes contains the method flush()? () 5. If M and […]

  • Java daily exercises, make progress a little every day (35)

    Time:2022-3-16

    catalogue 1. What is the correct description of abstract classes? ( ) 2、____ Technology is a technology that can play audio, video and other multimedia information in real time on the Internet and Intranet without downloading and waiting. 3. The final result of variable C in the test class of the following program is 4. […]