πŸ“Š JAVA
Q. Which of these methods can be used to output a string in an applet?
  • (A) display()
  • (B) print()
  • (C) drawString()
  • (D) tr
πŸ’¬ Discuss
βœ… Correct Answer: (A) display()
πŸ“Š JAVA
Q. Which of these methods is a part of Abstract Window Toolkit (AWT) ?
  • (A) display()
  • (B) paint()
  • (C) drawString()
  • (D) tr
πŸ’¬ Discuss
βœ… Correct Answer: (A) display()
πŸ“Š JAVA
Q. Which of these operators can be used to get run time information about an object?
  • (A) getInfo
  • (B) Info
  • (C) instanceof
  • (D) getinfoof
πŸ’¬ Discuss
βœ… Correct Answer: (C) instanceof
πŸ“Š JAVA
Q. Which of these methods can be used to writing console output?
  • (A) print()
  • (B) println()
  • (C) write()
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned
πŸ“Š JAVA
Q. Which of these class is used to read from a file?
  • (A) InputStream
  • (B) BufferedInputStream
  • (C) FileInputStream
  • (D) BufferedFileInputStream
πŸ’¬ Discuss
βœ… Correct Answer: (C) FileInputStream
πŸ“Š JAVA
Q. Which of these events is generated by scroll bar?
  • (A) ActionEvent
  • (B) KeyEvent
  • (C) WindowEvent
  • (D) AdjustmentEvent
πŸ’¬ Discuss
βœ… Correct Answer: (D) AdjustmentEvent
πŸ“Š JAVA
Q. Which of these methods can be used to obtain the command name for invoking ActionEvent object?
  • (A) getCommand()
  • (B) getActionCommand()
  • (C) getActionEvent()
  • (D) getActionEventCommand()
πŸ’¬ Discuss
βœ… Correct Answer: (B) getActionCommand()
πŸ“Š JAVA
Q. Which of these class is not related to input and output stream in terms of functioning?
  • (A) File
  • (B) Writer
  • (C) InputStream
  • (D) Reader
πŸ’¬ Discuss
βœ… Correct Answer: (A) File
πŸ“Š JAVA
Q. Which of these class is not a member class of java.io package?
  • (A) String
  • (B) StringReader
  • (C) Writer
  • (D) File
πŸ’¬ Discuss
βœ… Correct Answer: (A) String

Explanation: String class is not a member class of java.io package

πŸ“Š JAVA
Q. Which of these class is a superclass of all other classes?
  • (A) Math
  • (B) Process
  • (C) System
  • (D) Object
πŸ’¬ Discuss
βœ… Correct Answer: (D) Object