Topic: main函数的参数中String[] args 和String args[]有什么区别 |
Print this page |
1.main函数的参数中String[] args 和String args[]有什么区别 | Copy to clipboard |
Posted by: yiluren Posted on: 2004-09-30 22:27 如题 |
2.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: ringayumi Posted on: 2004-09-30 23:16 they are same. You can use the javap instruction to check them. |
3.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: aleel_008 Posted on: 2004-10-01 12:59 same |
4.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: jerry010 Posted on: 2004-10-01 22:37 一样的,只是两种不同的数组表示法 |
5.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: lulu Posted on: 2004-10-08 15:47 一样的。和C中的数组一样的定义! |
6.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: scottding Posted on: 2004-10-09 09:30 SAME |
7.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: zxhhero Posted on: 2004-10-09 10:34 I know they are same, I only know it! |
8.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: ronnin Posted on: 2004-10-09 14:12 String [] args String[] args String args[] String args [] all above are the same |
9.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: Blakeyu Posted on: 2004-10-11 21:15 The same |
10.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: Blakeyu] | Copy to clipboard |
Posted by: helloworld Posted on: 2004-10-11 21:18 String[] args 看起来舒服些 。 |
11.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: helloworld] | Copy to clipboard |
Posted by: why Posted on: 2004-10-11 21:23 helloworld wrote: 是喔! 感觉上 args 是一个 String array 的 object 但 String args[] 则缺了这一点点 object 味道。 |
12.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: cjyzpcl Posted on: 2004-10-12 14:37 从语法上来说应该是 String[] args,指明args是String[]类得一个对象,但sun规定String args[]也对,这大概是考虑到了从其他语言转过来学java的程序员便于理解吧! |
13.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: chinaflyfish Posted on: 2004-10-22 21:08 两着没有在本则上没有什么区别,args[]是保持了C++那样的风格,而[]args是java一中新的标志,他兼容了那些C++开发人员的编程风格 |
14.Re:main函数的参数中String[] args 和String args[]有什么区别 [Re: yiluren] | Copy to clipboard |
Posted by: sunzheng Posted on: 2004-10-24 15:48 反正都能运行! |
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 |