Topic: 为什么可以? (异常的变量名可以用保留字) |
Print this page |
1.为什么可以? (异常的变量名可以用保留字) | Copy to clipboard |
Posted by: liufancjsdn Posted on: 2003-05-07 10:09 异常的变量名可以用保留字? try { .... } catch (Exception String) { System.err.println(String); } 这里用String,没问题!不明白,Bug? |
2.Re:为什么可以? [Re: liufancjsdn] | Copy to clipboard |
Posted by: 烂泥 Posted on: 2003-05-07 10:35 Stirng 不是keyword abstract boolean break byte case catch char class const continue default do double else extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while assert l |
3.Re:为什么可以? [Re: liufancjsdn] | Copy to clipboard |
Posted by: liufancjsdn Posted on: 2003-05-07 11:45 但是是类名啊! 这样总觉得不太好 |
4.Re:为什么可以? [Re: liufancjsdn] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-05-07 11:53 这样用调 java.lang.String 对象 就可以了! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |