mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-10 03:54:48 +00:00
21 lines
363 B
Java
21 lines
363 B
Java
public final class Final
|
|
{
|
|
public static void main(String args[])
|
|
{
|
|
Final f = null;
|
|
try
|
|
{
|
|
f.doSomething();
|
|
}
|
|
catch (NullPointerException x)
|
|
{
|
|
System.out.println("NullPointerException - ok");
|
|
}
|
|
}
|
|
|
|
void doSomething()
|
|
{
|
|
System.out.println("This should not happen");
|
|
}
|
|
}
|