About 3,970,000 results
Open links in new tab
  1. java - What does "Throws" do and how is it helpful? - Stack Overflow

    Aug 28, 2013 · Java uses throws clause to tell the compiler that method can throw exception is correct. But it also warns the caller about particular exception that could occur on calling that …

  2. Difference between throw and throws in Java? - Stack Overflow

    Can any one clearly state the difference between throw and throws in Java exception handling with an example? I have tried googling but couldn't arrive at a conclusion. Pls help

  3. java - Exception handling : throw, throws and Throwable - Stack …

    Oct 15, 2010 · Can any of you explain what the differences are between throw, throws and Throwable and when to use which?

  4. When to use throws in a Java method declaration? - Stack Overflow

    Should unchecked exceptions also be declared in the method signature with a 'throws', or is it practice to only use 'throws' for checked exceptions?

  5. java - ¿Qué es realmente "throws"? - Stack Overflow en español

    El throws solo indica que el método puede lanzar X excepciones marcadas (excepciones que hereden de Exception) y esto es útil para el compilador, debido a que, puede darte …

  6. java - Why is "throws Exception" necessary when calling a function ...

    Jul 21, 2012 · From Java Tutorial: An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of the program's instructions. Now, as you know …

  7. What's the purpose of the 'throws' statement in Java?

    Jul 2, 2011 · 4 Java's approach to exceptions is to make method caller aware of failure conditions and thus be forced to handle them or acknowledge the fact that the exception isn't handled via …

  8. What does throws statement mean in java? - Stack Overflow

    Sep 21, 2012 · Also, what does throws NumberFormatException, IOException mean? I keep trying to use BufferedReader by saying BufferedReader nerd = new BufferedReader(new …

  9. How can I throw a general exception in Java? - Stack Overflow

    In C#, you do not have to derive a new class from Exception. You may simply "throw new Exception (message);" for example, and handle it generically in the block that will catch the …

  10. java - Usando as palavras-chave Throws e Throw - Stack Overflow …

    May 25, 2014 · A palavra-chave throw serve para lançar uma exceção (mais precisamente um Throwable, mas em 99,9% dos casos uma exceção). A palavra-chave throws serve para …