A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Difference between Compile Time Error and Compile Time Exception?
Spartan Spartiate
Greenhorn
Joined: Dec 20, 2011
Posts: 2
posted
Jan 07, 2013 06:14:07
0
Hello
1. Is there difference between Compile-Time Error and Compile-Time Exception? Or they same?
2. Is there difference between Run-Time Error and Run-Time Exception? Or they same?
Please Explain Your Answer if there is difference.
Thanks
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
I like...
posted
Jan 07, 2013 06:25:44
0
opaque examples of your opaque terms :
compile time error :
class Xyz { String int = ""; }
compile time exception - (term Checked Exception is clear than Compile time Exception
void print() { throw new IOException(); }
run time error:
void print(){ print(); }
run time exception- (term Unchecked Exception is clear than Runtime Exception, since all the exception are throw at runtime
)
int[] a = {1}; System.out.println(a[-1]);
Rajdeep Biswas
Ranch Hand
Joined: Mar 26, 2012
Posts: 163
I like...
posted
Jan 10, 2013 00:05:44
0
compile time exception - (term Checked Exception is clear than Compile time Exception
I dont agree with the naming adopted-"compile time exceptions". It could be "exception handling in compile time"
The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory | www.TechAspire.blogspot.in
I agree. Here's the link:
http://aspose.com/file-tools
subject: Difference between Compile Time Error and Compile Time Exception?
Similar Threads
When is it a compiler error and when is it a runtime exception?
Difference between Compiler Error & Runtime Exception
Compile time Vs Runtime Exception
Error & Exception
Runtime & Compile time Error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter