πŸ“Š JAVA
Q. Which of these keywords must be used to monitor for exceptions?
  • (A) try..catch
  • (B) finally
  • (C) throw
  • (D) throws
πŸ’¬ Discuss
βœ… Correct Answer: (A) try..catch
πŸ“Š JAVA
Q. Which of these classes is related to all the exceptions that can be caught by using catch?
  • (A) Error
  • (B) Exception
  • (C) a & b
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) Exception
πŸ“Š JAVA
Q. Which of these classes is related to all the exceptions that cannot be caught?
  • (A) Error
  • (B) Exception
  • (C) a & b
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) Error
πŸ“Š JAVA
Q. Standard output variable ‘out’ is defined in which class?
  • (A) Void
  • (B) Process
  • (C) Runtime
  • (D) System
πŸ’¬ Discuss
βœ… Correct Answer: (D) System
πŸ“Š JAVA
Q. Which of these packages contains all the event handling interfaces?
  • (A) java.lang
  • (B) java.awt
  • (C) java.awt.event
  • (D) java.event
πŸ’¬ Discuss
βœ… Correct Answer: (C) java.awt.event
πŸ“Š JAVA
Q. Which of these exceptions handles the divide by zero error?
  • (A) ArithmeticException
  • (B) MathException
  • (C) IllegalAccessException
  • (D) IllegarException
πŸ’¬ Discuss
βœ… Correct Answer: (A) ArithmeticException
πŸ“Š JAVA
Q. Which of these exceptions will occur if we try to access the index of an array beyond its length?
  • (A) ArithmeticException
  • (B) ArrayException
  • (C) ArrayIndexException
  • (D) ArrayIndexOutOfBoundsException
πŸ’¬ Discuss
βœ… Correct Answer: (D) ArrayIndexOutOfBoundsException
πŸ“Š JAVA
Q. What decides thread priority?
  • (A) Process
  • (B) Process scheduler
  • (C) Thread
  • (D) Thread scheduler
πŸ’¬ Discuss
βœ… Correct Answer: (D) Thread scheduler
πŸ“Š JAVA
Q. Which of the following will ensure the thread will be in running state?
  • (A) yield()
  • (B) notify()
  • (C) wait()
  • (D) Thread.killThread()
πŸ’¬ Discuss
βœ… Correct Answer: (C) wait()
πŸ“Š JAVA
Q. Which of these is used to read a string from the input stream?
  • (A) get()
  • (B) getLine()
  • (C) read()
  • (D) readLine()
πŸ’¬ Discuss
βœ… Correct Answer: (C) read()