Java Objective Questions Answers -Chapter 1

  • 36. Main method parameter has which type of data type

    1. int
    2. char
    3. string
    4. double
    Answer :

    Option C

  • 37. String is the predefined

    1. Method
    2. Class
    3. Variable
    4. Object
    Answer :

    Option B

  • 38. Which driver is efficient and always preferable for using JDBC applications

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

    Option A

  • 39. JAR file contains the compressed version of

    1. .java file
    2. .class file
    3. .jsp file
    4. None of above
    Answer :

    Option B

  • 40. Which method of java is invoked by JVM to reclaim the inaccessible memory location

    1. reclaim() method
    2. final() method
    3. finalize() method
    4. both b and c
    Answer :

    Option C

  • 41. Object which can store group of other objects is called

    1. Collection object
    2. Java object
    3. Package
    4. Wrapper
    Answer :

    Option A

  • 42. Private Constructors can't be access from any derived classes neither from another class

    1. True
    2. False
    Answer :

    Option A

Please Like Us

disawar satta king