Created
May 23, 2017 07:21
-
-
Save fermopili/d36cc3a1c2b69ad56e158f29dfa463b3 to your computer and use it in GitHub Desktop.
com.javarush.task.task38.task3803
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 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