Java Objective Questions Answers -Chapter 1

  • 71. Why we use array as a parameter of main method

    1. it is syntax
    2. Can store multiple values
    3. Both of above
    4. None of above
    Answer :

    Option B

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

    JDBC

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

    Option B

  • 73. Which driver is called as thin-driver in JDBC

    1. Type-1 driver
    2. Type-2 driver
    3. Type-3 driver
    4. Type-4 driver
    Answer :

    Option D

  • 74. Which collection class associates values witch keys, and orders the keys according to their natural order

    1. java.util.HashSet
    2. java.util.LinkedList
    3. java.util.TreeMap
    4. java.util.SortedSet
    Answer :

    Option C

Please Like Us

disawar satta king