Java Objective Questions Answers -Chapter 1
-
59. Which method of the Applet class displays the result of applet code on screen
- run() method
- paint() method
- drawString() method
- main() method
Answer And Explanation
Answer: Option B
-
60. There is no default transaction attribute for an EJB
- False
- True
Answer And Explanation
Answer: Option B
-
61. Which command disassembles a class file
- javaamd
- javacmd
- java
- javap
Answer And Explanation
Answer: Option D
-
62. The inner class can access private members of the outer class
- False
- True
Answer And Explanation
Answer: Option B
-
63. In which we clone the object and their constituent parts
- Shallow cloning
- Deep cloning
- Both of above
- None of above
Answer And Explanation
Answer: Option B