mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02: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");
|
||
|
|
}
|
||
|
|
}
|