Java Objective Questions Answers -Chapter 1

  • 15. Which keyword represents object of the present class

    1. interface
    2. package
    3. this
    4. static
    Answer :

    Option C

  • 16. 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 :

    Option B

  • 17. Executable applet is

    1. .applet file
    2. .java html
    3. .java file
    4. .class file
    Answer :

    Option D

  • 18. How many keywords are available in java

    1. 35
    2. 55
    3. 48
    4. 130
    Answer :

    Option C

  • 19. Thread class is available in

    1. java.io package
    2. java.lang package
    3. java.awt package
    4. java.util package
    Answer :

    Option B

  • 20. The inner class can access private members of the outer class

    1. False
    2. True
    Answer :

    Option B

  • 21. Package of drawstring() method is

    1. java.applet
    2. java.io
    3. javax.swing
    4. java.awt
    Answer :

    Option D

Please Like Us

disawar satta king