Java. Exceptions - how to cook, how to eat

Download Java. Exceptions - how to cook, how to eat

Post on 24-Jan-2015

567 views

Category:

Technology

1 download

Embed Size (px)

DESCRIPTION

lang: Russian

TRANSCRIPT

<ul><li> 1. Exceptions- how to cook ,howto eat Exceptions: how to cook, how to eat</li></ul> <p> 2. </p> <ul><li> , : </li></ul> <ul><li>- ,</li></ul> <ul><li>- </li></ul> <ul><li>- </li></ul> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 3. ? </p> <ul><li> , </li></ul> <ul><li> ? </li></ul> <p>Exceptions: how to cook, how to eat 4. </p> <ul><li> (, ) </li></ul> <p>Exceptions: how to cook, how to eat 5. </p> <p>Exceptions: how to cook, how to eat 6. </p> <ul><li> ,</li></ul> <ul><li> 99.999% </li></ul> <p>Exceptions: how to cook, how to eat 7. </p> <ul><li> ,</li></ul> <ul><li> 99.999% , </li></ul> <ul><li> , , .</li></ul> <p>Exceptions: how to cook, how to eat 8. </p> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 9. </p> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 10. </p> <ul><li> . </li></ul> <ul><li> , </li></ul> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 11. </p> <ul><li> . </li></ul> <ul><li> , </li></ul> <ul><li> , </li></ul> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 12. </p> <ul><li> : </li></ul> <p>Exceptions: how to cook, how to eat 13. </p> <ul><li> C = A + B </li></ul> <p>Exceptions: how to cook, how to eat 14. C = A + B </p> <ul><li>int sum(int a, int b) { </li></ul> <ul><li>return a+b; </li></ul> <ul><li>} </li></ul> <p>Exceptions: how to cook, how to eat 15. C = A + B </p> <ul><li>int sum(int a, int b) { </li></ul> <ul><li>long c = a + b; </li></ul> <ul><li>if (c &gt; Inte g e r .MAX_INT)</li></ul> <ul><li>return ? ; // ? </li></ul> <ul><li>if (c &lt; Integer.MIN_INT) { </li></ul> <ul><li>return ? ; // ? </li></ul> <ul><li>return a+b; </li></ul> <ul><li>} </li></ul> <ul><li> ? </li></ul> <p>Exceptions: how to cook, how to eat 16. C = A + B ? </p> <ul><li>int sum(int a, int b) { </li></ul> <ul><li>long c = a + b; </li></ul> <ul><li>if (c &gt; Inte g e r .MAX_INT)</li></ul> <ul><li>return ? ; // ? </li></ul> <ul><li>if (c &lt; Integer.MIN_INT) { </li></ul> <ul><li>return ? ; // ? </li></ul> <ul><li>return a+b; </li></ul> <ul><li>} </li></ul> <p>Exceptions: how to cook, how to eat 17. C = A + B ....? </p> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 18. </p> <ul><li> , : </li></ul> <ul><li>- ,</li></ul> <ul><li>- </li></ul> <ul><li>- </li></ul> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 19. Exceptions- ... </p> <ul><li>... ? </li></ul> <p>Exceptions: how to cook, how to eat 20. Exceptions- ... </p> <ul><li>... , . </li></ul> <p>Exceptions: how to cook, how to eat 21. </p> <ul><li> , . </li></ul> <p>Exceptions: how to cook, how to eat 22. </p> <ul><li> , . </li></ul> <ul><li> , , . </li></ul> <p>Exceptions: how to cook, how to eat 23. </p> <ul><li> . </li></ul> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 24. </p> <p>Exceptions: how to cook, how to eat 25. </p> <ul><li> : </li></ul> <p>Exceptions: how to cook, how to eat 26. </p> <ul><li> : </li></ul> <ul><li> . </li></ul> <p>Exceptions: how to cook, how to eat 27. </p> <ul><li> : </li></ul> <p>Exceptions: how to cook, how to eat 28. </p> <ul><li> : </li></ul> <ul><li> , </li></ul> <p>Exceptions: how to cook, how to eat 29. </p> <ul><li> : </li></ul> <ul><li> , - , . </li></ul> <p>Exceptions: how to cook, how to eat 30. Exceptions </p> <p>Exceptions: how to cook, how to eat 31. Exceptions </p> <ul><li>java.lang.NullPointerException </li></ul> <p>Exceptions: how to cook, how to eat 32. Exceptions </p> <ul><li>java.lang.NullPointerException </li></ul> <ul><li><ul><li> ? </li></ul></li></ul> <ul><li><ul><li> , null </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 33. Exceptions </p> <ul><li>java.lang.NullPointerException </li></ul> <ul><li><ul><li> : </li></ul></li></ul> <ul><li><ul><li>- , </li></ul></li></ul> <ul><li><ul><li>- , </li></ul></li></ul> <ul><li><ul><li>...</li></ul></li></ul> <p>Exceptions: how to cook, how to eat 34. Exceptions </p> <ul><li>java.lang.ClassCastException </li></ul> <p>Exceptions: how to cook, how to eat 35. Exceptions </p> <ul><li>java.lang.ClassCastException </li></ul> <ul><li><ul><li> ? </li></ul></li></ul> <ul><li><ul><li> , . </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 36. Exceptions </p> <ul><li>java.lang.ClassCastException </li></ul> <ul><li><ul><li> : </li></ul></li></ul> <ul><li><ul><li> , - </li></ul></li></ul> <ul><li><ul><li>...</li></ul></li></ul> <p>Exceptions: how to cook, how to eat 37. Exceptions </p> <ul><li>java.lang.ClassNotFoundException </li></ul> <p>Exceptions: how to cook, how to eat 38. Exceptions </p> <ul><li>java.lang.ClassNotFoundException </li></ul> <ul><li><ul><li> ? </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 39. Exceptions </p> <ul><li>java.lang.ClassNotFoundException </li></ul> <ul><li><ul><li> : </li></ul></li></ul> <ul><li><ul><li>- , </li></ul></li></ul> <ul><li><ul><li>- , </li></ul></li></ul> <ul><li><ul><li>- / , </li></ul></li></ul> <ul><li><ul><li>- , </li></ul></li></ul> <ul><li><ul><li>...</li></ul></li></ul> <p>Exceptions: how to cook, how to eat 40. Exceptions </p> <ul><li>java.lang.IndexOutOfBoundsException </li></ul> <p>Exceptions: how to cook, how to eat 41. Exceptions </p> <ul><li>java.lang.IndexOutOfBoundsException </li></ul> <ul><li><ul><li> ? </li></ul></li></ul> <ul><li><ul><li> , . </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 42. Exceptions </p> <ul><li>java.lang.IndexOutOfBoundsException</li></ul> <ul><li><ul><li> : </li></ul></li></ul> <ul><li><ul><li>...</li></ul></li></ul> <p>Exceptions: how to cook, how to eat 43. Exceptions </p> <ul><li>java.lang.StackOverflowError </li></ul> <ul><li>java.lang.OutOfMemoryError</li></ul> <p>Exceptions: how to cook, how to eat 44. Exceptions </p> <ul><li>java.lang.StackOverflowError </li></ul> <ul><li>java.lang.OutOfMemoryError </li></ul> <ul><li><ul><li> ? </li></ul></li></ul> <ul><li><ul><li> , </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 45. Exceptions </p> <ul><li>java.lang.StackOverflowError</li></ul> <ul><li>java.lang.OutOfMemoryError </li></ul> <ul><li><ul><li> : </li></ul></li></ul> <ul><li><ul><li>... </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 46. Exceptions </p> <ul><li>java.lang.RuntimeException </li></ul> <p>Exceptions: how to cook, how to eat 47. Exceptions </p> <ul><li>java.lang.RuntimeException </li></ul> <ul><li> ? </li></ul> <ul><li><ul><li>- </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 48. Exceptions </p> <ul><li>java.lang.RuntimeException </li></ul> <ul><li><ul><li> : </li></ul></li></ul> <ul><li><ul><li>... </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 49. Exceptions </p> <ul><li>Application specific exception </li></ul> <p>Exceptions: how to cook, how to eat 50. Exceptions </p> <ul><li>Application specific exception </li></ul> <ul><li> ? </li></ul> <ul><li><ul><li>my.application. infrastructure.ApplicationException </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 51. Exceptions </p> <ul><li> ? </li></ul> <p>Exceptions: how to cook, how to eat 52. Exceptions </p> <ul><li> ? </li></ul> <ul><li> ? </li></ul> <ul><li><ul><li>Application console </li></ul></li></ul> <ul><li><ul><li>Application logs </li></ul></li></ul> <ul><li><ul><li>Tests env. logs </li></ul></li></ul> <p>Exceptions: how to cook, how to eat 53. Exceptions- how to cook ,howto eat timeto discuss Exceptions: how to cook, how to eat </p>