1 2 Previous Next 17 Replies Latest reply: Nov 2, 2006 1:28 PM by 807607 Go to original post RSS
      • 15. Re: static method and exception
        807607
        thats the point it is printing false

        but when if statemnt is true then it is deleting file
        and giving status true
        but if it is true you are not calling the delete file method. You are not making any sense.
        • 16. Re: static method and exception
          807607
          theoritciaaly it should delete.
          even i chekd the filename before using this delete.it
          is correct
          What do you mean you checked the filename?

          deletefile is staticmethod in same class which
          executes when if statemnt is true.
          The call is in the else block it will not execute if the statement is true (unless you are calling it somewhere else).

          Also, it obviously is working if you see "false". Which means there is something preventing it from being deleted. I think you need to close the file first. Maybe? Either way the method is being called before the exception is thrown.
          • 17. Re: static method and exception
            807607
            for true dele method is called from another file.for false i need to setup things
            boolean dele = classname.dele(fil)
            1 2 Previous Next