Java Objective Questions Answers -Chapter 1

  • 15. Which statement is static and synchronized in JDBC API

    1. executeQuery()
    2. executeUpdate()
    3. getConnection()
    4. prepareCall()
    Answer And Explanation

    Answer: Option C

  • 16. The JDBC-ODBC bridge is

    1. Multithreaded
    2. Singlethreaded
    3. Both of above
    4. None of above
    Answer And Explanation

    Answer: Option A

  • 17. All raw data types should be read and uploaded to the database as an array of

    1. int
    2. char
    3. bollean
    4. byte
    Answer And Explanation

    Answer: Option D

  • 18. The class java.sql.Timestamp is associated with

    1. java.util.Time
    2. java.sql.Time
    3. java.util.Date
    4. None of above
    Answer And Explanation

    Answer: Option C

  • 19. Which of the following statements about arrays is syntactically wrong

    1. arrayName[] p = new arrayName[5];
    2. arrayName p[5];
    3. arrayName[] p [];
    4. arrayName p[][] = new arrayName[2][];
    Answer And Explanation

    Answer: Option B

  • 20. The Externizable interface extends the serializable interface

    1. True
    2. False
    Answer And Explanation

    Answer: Option A

  • 21. Converting a primitive type data into its corresponding wrapper class object instance is called

    1. boxing
    2. wrapping
    3. instantiation
    4. autoboxing
    Answer And Explanation

    Answer: Option D