Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created May 23, 2017 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermopili/d36cc3a1c2b69ad56e158f29dfa463b3 to your computer and use it in GitHub Desktop.
Save fermopili/d36cc3a1c2b69ad56e158f29dfa463b3 to your computer and use it in GitHub Desktop.
com.javarush.task.task38.task3803
package com.javarush.task.task38.task3803;
/*
Runtime исключения (unchecked exception)
*/
public class VeryComplexClass
{
public void methodThrowsClassCastException()
{
Object ch = new Character('*');
System.out.println((Byte)ch);
}
public void methodThrowsNullPointerException()
{
String str=null;
int l= str.length ( );
}
public static void main(String[] args)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment