Created
March 19, 2017 13:09
-
-
Save fermopili/b4bb0cb52b26dac107d735cc2f08ec68 to your computer and use it in GitHub Desktop.
com.javarush.task.task15.task1517
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.IOException; | |
public class Solution | |
{ | |
public static int A = 0; | |
static | |
{ A/=0; | |
// throw new Exception(); //throw an exception here - выбросьте эксепшн тут | |
} | |
public static int B = 5; | |
public static void main(String[] args) | |
{ | |
System.out.println(B); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment