This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keyword | scope | hoisted | reassignable | redeclarable | deletable | |
---|---|---|---|---|---|---|
no keword | function scope, global scope | ➖ | ✅ | ✅ | ✅ | |
var | function scope, global scope | ✅ | ✅ | ✅ | ➖ | |
let | block scope | ➖ | ✅ | ➖ | ✅ | |
const | block scope | ➖ | ➖ | ➖ | ➖ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This is a recreation of Unfold's (https://dribbble.com/unfold) parallax scene: https://cdn.dribbble.com/users/14268/screenshots/3275340/northface.gif --> | |
<div class="scrollDist"></div> | |
<div class="main"> | |
<svg viewBox="0 0 1200 800" xmlns="http://www.w3.org/2000/svg"> | |
<mask id="m"> | |
<g class="cloud1"> | |
<rect fill="#fff" width="100%" height="801" y="799" /> | |
<image xlink:href="https://assets.codepen.io/721952/cloud1Mask.jpg" width="1200" height="800"/> | |
</g> | |
</mask> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Solution { | |
/** | |
* [2] Создание обработчика исключений: | |
* Создается объект нашего созданного класса OurHandler | |
*/ | |
public static OurHandler handler = new OurHandler(); | |
public static void main(String[] args) { | |
Thread thread = new TestedThread();//[4] Создание нити | |
thread.setUncaughtExceptionHandler(handler); //Указываем обработчика исключений для этой нити, т.е. что будет перехватывать вместо стандартного try-catch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.CharConversionException; | |
import java.io.IOException; | |
import java.nio.file.FileSystemException; | |
/* | |
Перехват выборочных исключений | |
*/ | |
public class Solution { | |
/** | |
* [1]Создается объект класса StatelessBean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Кто меня вызывал? | |
*/ | |
public class Solution { | |
public static void main(String[] args) throws Exception { | |
method1(); | |
} | |
public static int method1() { | |
method2(); | |
StackTraceElement[] a = Thread.currentThread().getStackTrace(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package solution; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
/* | |
Удаялет повторяющиеся имена из массива Map | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Project_1; | |
import java.io.*; | |
public class Solution { | |
public static void main(String[] args) throws Exception { | |
//напишите тут ваш код | |
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); | |
String input = reader.readLine(); |