Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created March 19, 2017 13:09
Show Gist options
  • Save fermopili/b4bb0cb52b26dac107d735cc2f08ec68 to your computer and use it in GitHub Desktop.
Save fermopili/b4bb0cb52b26dac107d735cc2f08ec68 to your computer and use it in GitHub Desktop.
com.javarush.task.task15.task1517
/*
Статики и исключения
*/
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