Java Objective Questions Answers -Chapter 1

  • 8. Which method is used to perform DML statements in

    JDBC

    1. execute()
    2. executeUpdate()
    3. executeQuery()
    4. None of above
    Answer And Explanation

    Answer: Option B

  • 9. Which of the following below are valid isolation levels in J2EE

    1. TRANSACTION_READ_UNCOMMITTED
    2. TRANSACTION_SERIALIZABLE
    3. Only A
    4. Both A and B
    Answer And Explanation

    Answer: Option D

  • 10. Session beans are created by the client submitting the query to the database

    1. True
    2. False
    Answer And Explanation

    Answer: Option A

  • 11. Which metrhods are utilized to control the access to an object in multi threaded programming

    1. Asynchronized methods
    2. Synchronized methods
    3. Serialized methods
    4. None of above
    Answer And Explanation

    Answer: Option B

  • 12. In Runnable, many threads share the same object instance

    1. True
    2. False
    Answer And Explanation

    Answer: Option A

  • 13. Java beans have no types

    1. True
    2. False
    Answer And Explanation

    Answer: Option A

  • 14. Program which executes applet is known as

    1. applet engine
    2. virtual machine
    3. JVM
    4. None of above
    Answer And Explanation

    Answer: Option A