|
Last change
on this file since 3127 was 2, checked in by bird, 23 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:
264 bytes
|
| Line | |
|---|
| 1 | public class pr184
|
|---|
| 2 | {
|
|---|
| 3 | public static void main(String[] args)
|
|---|
| 4 | {
|
|---|
| 5 | pr184 n = null;
|
|---|
| 6 | try
|
|---|
| 7 | {
|
|---|
| 8 | n.foo();
|
|---|
| 9 | }
|
|---|
| 10 | catch (NullPointerException x)
|
|---|
| 11 | {
|
|---|
| 12 | System.out.println(x);
|
|---|
| 13 | }
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | int x = 2;
|
|---|
| 17 |
|
|---|
| 18 | final int foo()
|
|---|
| 19 | {
|
|---|
| 20 | return x;
|
|---|
| 21 | };
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.