Hi servleters:
   I'm developing a multilayer application that uses servlets.
This is not an specific servlet question, but I thinks this isn't
an uncommon scenario:

This sentence doesn't compiles (javac from Sun JDK 1.3.x):

public void method() {
    try {
      int a = 1;
    }
    catch (java.sql.SQLException sqle) {}
}

This method compiles ok:

public void method() throws java.sql.SQLException {
    int a = 1;
}

What I'm wrong about ?

Hector./

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to