Java Objective Questions Answers -Chapter 1 Online Quiz Test
-
1. JAR file contains the compressed version of
- .java file
- .class file
- .jsp file
- None of above
-
2. Process of creating exact copy of the existing object is called
- cloning
- overloading
- overriding
- coping
-
3. Which is the predefined package
- Lang package
- io package
- util package
- All of above
-
4. Java intermediate code is known as
- First code
- Mid code
- Byte code
- None of above
-
5. Which command is used for interpretation of java program
- Java
- javac
- javap
- none of above
-
6. What is meaning of jar
- java archived
- java array
- java architecture
- none of these
-
7. Which of the following command is used to compile the Java program
- java
- javac
- javap
- none of these
-
8. What do you mean by javap
- java compiler
- java Interpreter
- java Disassemble
- java debugger
-
9. what is jdb
- java compiler
- java Interpreter
- java Disassemble
- java debugger
-
10. Java is known as _______stage language
- One
- Two
- Three
- Four
-
11. Which driver is called as thin-driver in JDBC
- Type-1 driver
- Type-2 driver
- Type-3 driver
- Type-4 driver
-
12. How many transaction isolation levels are defined in java.sql.Connection interface
- 4
- 3
- 5
- 2
-
13. Which method of java is invoked by JVM to reclaim the inaccessible memory location
- reclaim() method
- final() method
- finalize() method
- both b and c
-
14. ____ allows java code to run in the JVM to call and be called by native applications
- JFI
- JNI
- NJI
- FJI
-
15. Interfaces helps in which type of inheritance
- Multiple inheritance
- Multilevel inheritance
- Hierarchical inheritance
- None of above
-
16. If nested try is possible
- Yes
- No
-
17. Applet always executed on
- Client side
- Server Side
-
18. Which method of the Applet class displays the result of applet code on screen
- run() method
- paint() method
- drawString() method
- main() method
-
19. There is no default transaction attribute for an EJB
- False
- True
-
20. Which command disassembles a class file
- javaamd
- javacmd
- java
- javap