Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Rodrigo Tassini wrote:Are you using Windows ?
I think the problem is in line 1 of your posted code.
Try to use this:
I think word compile used very wrongly.Everthing in java, whether it checked or unchecked excptions it checks at runtime only
SCJP 5, SCWCD 5
Exceptions wich are checked by compiler for smooth execution of the program at runtime is called checked exception
SCJP 5, SCWCD 5
In JDBC all the SQL exceptions are checked exceptions.
Now, In Spring all the SQL Exceptions are unchecked exceptions.
Do you think spring does not have smooth execution of program at runtime (having converted checked exceptions into unchecked exception...)??
Prabhakar Reddy Bokka wrote:
Exceptions wich are checked by compiler for smooth execution of the program at runtime is called checked exception
In JDBC all the SQL exceptions are checked exceptions.
Now, In Spring all the SQL Exceptions are unchecked exceptions.
Do you think spring does not have smooth execution of program at runtime (having converted checked exceptions into unchecked exception...)??
Christian Dillinger wrote:
As Spring puts some wrappers around every SQL-execution and "softens" checked to unchecked exceptions a Spring app will show stacktraces when something fails. You as a programmer don't have to handle the original exception and may focus on your business methods. In case of an exception you have to inform the user like you would do when not using Spring. Spring frees you of technically driven exceptions like SQLExceptions. (If thats a good way is to be discussed...)
SCJP 5, SCWCD 5