| Author |
what is error?
|
arden liu
Greenhorn
Joined: Dec 09, 2004
Posts: 9
|
|
|
any statement that may throw an Excetpion must be enclosed in a try bolck.
|
 |
Nicholas Cheung
Ranch Hand
Joined: Nov 07, 2003
Posts: 4982
|
|
any statement that may throw an Excetpion must be enclosed in a try bolck.
It should be any statement that may throw checked (or non-runtime) excetpion must be enclosed in a try-catch block. Nick
|
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
|
 |
arden liu
Greenhorn
Joined: Dec 09, 2004
Posts: 9
|
|
But in that sentence, it is an Exception, I think it is one instance of Exception, such as new Exception(). maybe the statement should change Exception into exception, it is very more clear. Thanks anyway.
|
 |
 |
|
|
subject: what is error?
|
|
|