Javatpoint Logo

Throwable is an interface or class

By: jayade*** On: Tue Apr 29 15:32:31 IST 2014     Question Reputation-5 Answer Reputation5 Quiz Belt Series Points0  0Blank User
Throwable is an interface or class.Up-5Down

 
Throwable is a class rather then an interface.


and why it is....
might be two reasons:

Exceptions have state. In particular, message, cause, and stack trace.

It is easier for the JVM to implement efficient catch blocks. Class hierarchy checks are cheaper than interface checks.
Image Created0Down

By: [email protected] On: Tue Apr 29 16:28:12 IST 2014 Question Reputation0 Answer Reputation392 Belt Series Points0 392User Image
Are You Satisfied :1Yes2No
 
throwable is a class.Image Created0Down

By: [email protected] On: Wed Apr 30 11:33:02 IST 2014 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Throwable is a class. It is the super class of Exception class.Image Created0Down

By: [email protected] On: Thu May 01 13:50:55 IST 2014 Question Reputation0 Answer Reputation359 Belt Series Points0 359User Image
Are You Satisfied :0Yes1No
 
throwable is the classImage Created0Down

By: [email protected] On: Tue May 06 09:28:11 IST 2014 Question Reputation0 Answer Reputation10 Belt Series Points0 10User Image
Are You Satisfied :0Yes0No
 
Throwable is 100% Class,Image Created0Down

By: [email protected] On: Sun Aug 02 12:17:00 IST 2015 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No