can u handle an error if u write Thowable in the catch
class lise
try
{
some errorneous code
}catch(Throwable e){ ...}
Answers were Sorted based on User's Feedback
Answer / aseet padhi
yes.We can handle by using Throwable in catch block because
it's super class of Exception.
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / ajay dhingra
Yes we can handle exception or error using throwable in
catch because Throwable is super class of all error and
exception.
Is This Answer Correct ? | 8 Yes | 1 No |
Answer / papu
Yes we can handle the exception using Throwable in catch
block.There is no compilation error.
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / manju kt
No u cant because u cannot compile classes with errors
Is This Answer Correct ? | 0 Yes | 8 No |
Explain when we should make an instance variable private.
Can you use abstract and final both with a method?
my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??
What is public/private protected in java?
What are the types of strings?
Explain restrictions on using enum?
What is the purpose of the system class in java?
if the memory capacity is 700 presently occupied by process is 690. then another process request space(40) how this situation handled in java.
What is multithreading in java?
Why are constructors used?
What are the similarities between an array and an ArrayList?
What class of exceptions are generated by the java run-time system?