πŸ“Š JAVA
Q. Which exception is thrown by read() method?
  • (A) IOException
  • (B) InterruptedException
  • (C) SystemException
  • (D) SystemInputException
πŸ’¬ Discuss
βœ… Correct Answer: (A) IOException
πŸ“Š JAVA
Q. Which is the super class of all exception classes
  • (A) Exception
  • (B) Object
  • (C) Error
  • (D) Throwable
πŸ’¬ Discuss
βœ… Correct Answer: (D) Throwable
πŸ“Š JAVA
Q. Which class is the super class of all classes of the java.lang package?
  • (A) Object
  • (B) System
  • (C) Super
  • (D) Class
πŸ’¬ Discuss
βœ… Correct Answer: (A) Object
πŸ“Š JAVA
Q. Which of the following exception is raised when a number is divided by zero
  • (A) NumberFormatException
  • (B) ArithmeticException
  • (C) NullPointerException
  • (D) IllegalArgumentException
πŸ’¬ Discuss
βœ… Correct Answer: (B) ArithmeticException
πŸ“Š JAVA
Q. A single try block must be followed by which of these?
  • (A) finally
  • (B) catch
  • (C) catch or finally
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) catch or finally
πŸ“Š JAVA
Q. Runnable is a
  • (A) Class
  • (B) Method
  • (C) Variable
  • (D) Interface
πŸ’¬ Discuss
βœ… Correct Answer: (D) Interface
πŸ“Š JAVA
Q. Thread priority in Java is represented as?
  • (A) int
  • (B) Float
  • (C) double
  • (D) long
πŸ’¬ Discuss
βœ… Correct Answer: (A) int
πŸ“Š JAVA
Q. Which of these class is used to make a thread?
  • (A) String
  • (B) System
  • (C) Thread
  • (D) Runnable
πŸ’¬ Discuss
βœ… Correct Answer: (C) Thread
πŸ“Š JAVA
Q. Which of these interface is implemented to create a Thread?
  • (A) Runnable
  • (B) Connections
  • (C) Set
  • (D) MapConnections
πŸ’¬ Discuss
βœ… Correct Answer: (A) Runnable
πŸ“Š JAVA
Q. Which of these method of Thread class is used to find out the priority given to a thread?
  • (A) get()
  • (B) ThreadPriority()
  • (C) getPriority()
  • (D) getThreadPriority()
πŸ’¬ Discuss
βœ… Correct Answer: (C) getPriority()