download Mastguru Android App

Java Objective Questions Answers -Chapter 1 Online Quiz Test

  • 1. Which class cannot be subclassed (or extended) in java?

    1. abstract class
    2. parent class
    3. Final class
    4. None of above
  • 2. Can we declare abstract static method

    1. Yes
    2. No
  • 3. Can we access private class outside the package

    1. Yes
    2. No
  • 4. 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
  • 5. Suspend thread can be revived by using

    1. start() method
    2. Suspend() method
    3. resume() method
    4. yield() method
  • 6. Runnable is

    1. Class
    2. Method
    3. Variable
    4. Interface
  • 7. 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
  • 8. Which method is used to perform DML statements in

    JDBC

    1. execute()
    2. executeUpdate()
    3. executeQuery()
    4. None of above
  • 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
  • 10. Session beans are created by the client submitting the query to the database

    1. True
    2. False
  • 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
  • 12. In Runnable, many threads share the same object instance

    1. True
    2. False
  • 13. Java beans have no types

    1. True
    2. False
  • 14. Program which executes applet is known as

    1. applet engine
    2. virtual machine
    3. JVM
    4. None of above
  • 15. Which statement is static and synchronized in JDBC API

    1. executeQuery()
    2. executeUpdate()
    3. getConnection()
    4. prepareCall()
  • 16. The JDBC-ODBC bridge is

    1. Multithreaded
    2. Singlethreaded
    3. Both of above
    4. None of above
  • 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
  • 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
  • 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][];
  • 20. The Externizable interface extends the serializable interface

    1. True
    2. False
Submit Quiz
Post a comment