Stats: 3,190,729 members, 7,941,759 topics. Date: Friday, 06 September 2024 at 12:50 PM |
Nairaland Forum / Science/Technology / Programming / What Is The Difference Between Runtimeexception And Exception Classes? (1512 Views)
The Difference Between A Programmer, Coder, Developer And Engineer / The Difference Between Java And Javascript / What Is The Difference Between A URL, URI And A SLUG (2) (3) (4)
What Is The Difference Between Runtimeexception And Exception Classes? by paranorman(m): 9:21am On Sep 22, 2016 |
Was cool with the Exception Class till I ran into Runtimeexception. Was the major difference between these two folks and when is it proper to use any of them? |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by dueal(m): 10:59am On Sep 22, 2016 |
paranorman: Typically in OOP languages that support structured exception handling(SEH) every exception is is a datatype. So to follow OOP ideas, Exception class is a general datatype to represent exceptional conditions which derived classes can inherit from to specify a more concrete exception. RuntimeException class then is a concrete type to strictly represent runtime exceptions. It's kindof a redundant name but hey...it's there. |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by paranorman(m): 11:35am On Sep 22, 2016 |
dueal:okay, thanks. |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by ugwum007(m): 2:34pm On Sep 24, 2016 |
Runtime exceptions are throwed during the operations of the JVM. 1 Like |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by paranorman(m): 6:25pm On Sep 24, 2016 |
ugwum007:pardon my ignorance, what's 'JVM'? I ain't pro yet, just a wannabe. |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by originalhuman: 9:54pm On Sep 24, 2016 |
paranorman:Java Virtual Machine |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by toheebDOTcom(m): 3:56pm On Oct 07, 2016 |
No major answer here, so I will post this.. In some language, exceptions are errors you can catch. it means they won't halt the execution of your script. Errors can happen at different stages, during compilation (eg when you forget a ';') or Runtime (eg when you call an undefined function or you require a non existing file) . Such errors that happen at Runtime triggers a RuntimeException Class. This class generates the appropriate exception be it a memory, underflow, overflow, range ET cetera... tag: paranorman |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by paranorman(m): 6:34pm On Oct 07, 2016 |
toheebDOTcom: you did a good job explaining. Thanks. How long have you been programming and what languages are you pro in? |
Re: What Is The Difference Between Runtimeexception And Exception Classes? by toheebDOTcom(m): 8:25pm On Oct 07, 2016 |
paranorman:PHP. Some months now... |
(1) (Reply)
Web Job For Professional Developer / [HOT] See What Fell From Cloud This Morning. OMG!!! / You Cannot Be A Programmer Without Ethical Hacking
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 19 |