Java Objective Questions Answers -Chapter 1

  • 22. What is meaning of jar

    1. java archived
    2. java array
    3. java architecture
    4. none of these
    Answer :

    Option A

  • 23. Inheritance means

    1. Sub class extends super class
    2. Sub class extends Base class
    3. Sub class create object of super class
    4. All of the above
    5. 1
    6. 2
    7. 3
    8. 4
    Answer :

    Option E

  • 24. There is no default transaction attribute for an EJB

    1. False
    2. True
    Answer :

    Option B

  • 25. x=x+1 is equivalent to

    1. ++x
    2. x++
    3. x=x-1
    4. None of these
    Answer :

    Option B

  • 26. Which of the following command is used to compile the Java program

    1. java
    2. javac
    3. javap
    4. none of these
    Answer :

    Option B

  • 27. The class java.sql.Timestamp is associated with

    1. java.util.Time
    2. java.sql.Time
    3. java.util.Date
    4. None of above
    Answer :

    Option C

  • 28. Which statement is static and synchronized in JDBC API

    1. executeQuery()
    2. executeUpdate()
    3. getConnection()
    4. prepareCall()
    Answer :

    Option C

Please Like Us

disawar satta king