download Mastguru Android App

Java Objective Questions Answers -Chapter 1 Online Quiz Test

  • 1. JAR file contains the compressed version of

    1. .java file
    2. .class file
    3. .jsp file
    4. None of above
  • 2. Process of creating exact copy of the existing object is called

    1. cloning
    2. overloading
    3. overriding
    4. coping
  • 3. Which is the predefined package

    1. Lang package
    2. io package
    3. util package
    4. All of above
  • 4. Java intermediate code is known as

    1. First code
    2. Mid code
    3. Byte code
    4. None of above
  • 5. Which command is used for interpretation of java program

    1. Java
    2. javac
    3. javap
    4. none of above
  • 6. What is meaning of jar

    1. java archived
    2. java array
    3. java architecture
    4. none of these
  • 7. Which of the following command is used to compile the Java program

    1. java
    2. javac
    3. javap
    4. none of these
  • 8. What do you mean by javap

    1. java compiler
    2. java Interpreter
    3. java Disassemble
    4. java debugger
  • 9. what is jdb

    1. java compiler
    2. java Interpreter
    3. java Disassemble
    4. java debugger
  • 10. Java is known as _______stage language

    1. One
    2. Two
    3. Three
    4. Four
  • 11. 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
  • 12. How many transaction isolation levels are defined in java.sql.Connection interface

    1. 4
    2. 3
    3. 5
    4. 2
  • 13. 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
  • 14. ____ allows java code to run in the JVM to call and be called by native applications

    1. JFI
    2. JNI
    3. NJI
    4. FJI
  • 15. Interfaces helps in which type of inheritance

    1. Multiple inheritance
    2. Multilevel inheritance
    3. Hierarchical inheritance
    4. None of above
  • 16. If nested try is possible

    1. Yes
    2. No
  • 17. Applet always executed on

    1. Client side
    2. Server Side
  • 18. Which method of the Applet class displays the result of applet code on screen

    1. run() method
    2. paint() method
    3. drawString() method
    4. main() method
  • 19. There is no default transaction attribute for an EJB

    1. False
    2. True
  • 20. Which command disassembles a class file

    1. javaamd
    2. javacmd
    3. java
    4. javap
Submit Quiz
Post a comment