GLOSSARY ENTRY (DERIVED FROM QUESTION BELOW) | ||||
---|---|---|---|---|
|
16:37 Oct 26, 2020 |
|
English to Polish translations [PRO] Tech/Engineering - Computers: Software | |||||||
---|---|---|---|---|---|---|---|
|
| ||||||
| Selected response from: Frank Szmulowicz, Ph. D. United States Local time: 02:44 | ||||||
Grading comment
|
Summary of answers provided | ||||
---|---|---|---|---|
3 +2 | try-catch-finally |
|
Summary of reference entries provided | |||
---|---|---|---|
|
try-catch-finally Explanation: Widocznie nie ma polskiego tłumaczenia. -------------------------------------------------- Note added at 1 hr (2020-10-26 18:25:44 GMT) -------------------------------------------------- Napisz blok try-catch-finally w pierwszej kolejności w funkcji która może zwrócić wyjątek. http://krzysztofjelonek.net/obsluga-wyjatkow-najlepsze-prakt... W bloku try umieszczamy kod, który w wyniki swojego działania może rzucić wyjątek. Wyjątek ten „łapiemy” w bloku catch, a następnie dowolnie go obsługujemy. W bloku finally, umieszczamy instrukcje, które mają się wykonać niezależnie od tego, czy wyjątek został złapany czy też nie. Jeśli pominiemy blok catch, wtedy blok finally jest wymagany (w przeciwnym przypadku jest on opcjonalny). https://strefakodera.pl/programowanie/elementarz-java/elemen... Wyjątki łapiemy (obsługujemy) za pomocą mechanizmu try..catch..finally https://kursjava.com/wyjatki/podsumowanie/ -------------------------------------------------- Note added at 1 hr (2020-10-26 18:28:00 GMT) -------------------------------------------------- cccccccccccccccccccccccccc Napisz kod, w którym używasz wyjątków i zaimplementuj kod obsługi wyjątków (try, catch, finally) oraz zadeklaruj metody i metody przysłaniające, które rzucają wyjątki. https://dokumen.pub/java-przygotowanie-do-certyfikacji-ocpjp... |
| |||||||||
Grading comment
| ||||||||||
|
1 hr |
Reference Reference information: A common usage of catch and finally together is to obtain and use resources in a try block, deal with exceptional circumstances in a catch block, and release the resources in the finally block. For more information and examples on re-throwing exceptions, see try-catch and Throwing Exceptions. For more information about the finally block, see try-finally. https://docs.microsoft.com/en-us/dotnet/csharp/language-refe... |
| |
Login to enter a peer comment (or grade) |
Login or register (free and only takes a few minutes) to participate in this question.
You will also have access to many other tools and opportunities designed for those who have language-related jobs (or are passionate about them). Participation is free and the site has a strict confidentiality policy.