Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
363 bytes
|
Line | |
---|
1 | public final class Final
|
---|
2 | {
|
---|
3 | public static void main(String args[])
|
---|
4 | {
|
---|
5 | Final f = null;
|
---|
6 | try
|
---|
7 | {
|
---|
8 | f.doSomething();
|
---|
9 | }
|
---|
10 | catch (NullPointerException x)
|
---|
11 | {
|
---|
12 | System.out.println("NullPointerException - ok");
|
---|
13 | }
|
---|
14 | }
|
---|
15 |
|
---|
16 | void doSomething()
|
---|
17 | {
|
---|
18 | System.out.println("This should not happen");
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.