πŸ“Š JAVA
Q. Which of this method of Thread class is used to change the state of a thread to blocked state?
  • (A) sleep()
  • (B) terminate()
  • (C) stop()
  • (D) block()
πŸ’¬ Discuss
βœ… Correct Answer: (A) sleep()
πŸ“Š JAVA
Q. Which method in Thread class is used to check weather a thread is still running?
  • (A) isAlive()
  • (B) Join()
  • (C) isRunning()
  • (D) Alive()
πŸ’¬ Discuss
βœ… Correct Answer: (A) isAlive()
πŸ“Š JAVA
Q. Which of these methods is used to begin the execution of a thread?
  • (A) run()
  • (B) start()
  • (C) runThread()
  • (D) startThread()
πŸ’¬ Discuss
βœ… Correct Answer: (B) start()
πŸ“Š JAVA
Q. Which of these method waits for the thread to treminate?
  • (A) sleep()
  • (B) isAlive()
  • (C) join()
  • (D) stop()
πŸ’¬ Discuss
βœ… Correct Answer: (C) join()
πŸ“Š JAVA
Q. Which of these classes is used to read characters and strings in Java from console?
  • (A) BufferedReader
  • (B) StringReader
  • (C) BufferedStreamReader
  • (D) InputStreamReader
πŸ’¬ Discuss
βœ… Correct Answer: (D) InputStreamReader
πŸ“Š JAVA
Q. Which of these classes are used by Byte streams for input operation?
  • (A) InputStream
  • (B) InputOutputStream
  • (C) Reader
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) InputStream
πŸ“Š JAVA
Q. Which of these class contains the methods print() & println()?
  • (A) System
  • (B) System.out
  • (C) BufferedOutputStream
  • (D) PrintStream
πŸ’¬ Discuss
βœ… Correct Answer: (D) PrintStream
πŸ“Š JAVA
Q. Which of these methods can be used to write console output?
  • (A) printout()
  • (B) println()
  • (C) write()
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) println()
πŸ“Š JAVA
Q. Which of these classes are used by character streams output operations?
  • (A) OutputStream
  • (B) Writer
  • (C) ReadStream
  • (D) InputOutputStream
πŸ’¬ Discuss
βœ… Correct Answer: (B) Writer
πŸ“Š JAVA
Q. Which refers to a channel through which data flow from the source to the destination:
  • (A) String
  • (B) Character
  • (C) Stream
  • (D) Buffer
πŸ’¬ Discuss
βœ… Correct Answer: (C) Stream