exception is a run time error,then why exceptions are again classified into compile time exception and run time exception,in that case it should be run time exceptions only.please give explanation with suitable real time example
moaz.amin.37
-12
Junior Poster
Recommended Answers
Jump to PostWell, you are asking us to answer your assignment question. stultuske has pointed out the source which would give you the answer if you read. So it is your reading assignment now.
Jump to Postwell, I hate it to tell you, but Oracle IS the best answer. They own Java, and they're the ones responsible for the updates to the language, they are the ones who decide what is going to be in the new version(s) and how it 'll be implemented.
basically, they …
Jump to PostThere's no such thing as a "compile time exception" in Java. There is no instance of that term anywhere in the Java language Specification. The compiler will check that your code handles "checked" exceptions, but all Exceptions are thrown at run time.
Maybe you are reading something written by someone …
All 11 Replies
stultuske
1,116
Posting Maven
Featured Poster
moaz.amin.37
-12
Junior Poster
Taywin
312
Posting Virtuoso
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
moaz.amin.37
-12
Junior Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
JeffGrigg
170
Posting Whiz in Training
JamesCherrill
commented:
Good answer, very patient!
+15
JeffGrigg
170
Posting Whiz in Training
moaz.amin.37
-12
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.