Java Quiz (Set 10) Java Quiz (Set 10) 1 / 11 In which case, a program is not expected to recover? If an error occurs. If an exception occurs. Both of the above. None of the above. 2 / 11 In which case, a program is expected to recover? If an error occurs. If an exception occurs. Both of the above. Both of the above. 3 / 11 When finally block gets executed? Always when try block get executed, no matter exception occured or not. Always when a method get executed, no matter exception occured or not. Always when a try block get executed, if exception do not occur. Only when exception occurs in try block code. 4 / 11 This is the parent of Error and Exception classes. Throwable Catchable MainError MainException 5 / 11 which operator is considered to be with highest precedence? () , [] = ?: % 6 / 11 Which of the following is Faster, StringBuilder or StringBuffer? StringBuilder StringBuffer Both of the above. none of the above. 7 / 11 Which of the following is a thread safe? StringBuilder StringBuffer Both of the above none of the above 8 / 11 Which of the following is a marker interface? serializable comparable cloneable none of the above. 9 / 11 What is a marker interface? marker interface is an interface with no method. marker interface is an interface with single method, mark(). marker interface is an interface with single method, marker(). none of the above. 10 / 11 Which method must be implemented by all threads? wait() start() stop() run() 11 / 11 What is currentThread()? It is a Thread public static method used to obtain a reference to the current thread. It is a thread's instance method used to get thread count. It is a object's public static method used obtain a reference to the current thread. It is a object's instance method used to get thread count. Your score isThe average score is 0% 0% Restart quiz