Java中参数与参数之间的区别 [英] Difference between arguments and parameters in Java

查看:87
本文介绍了Java中参数与参数之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
参数和参数之间有什么区别?

Possible Duplicate:
What's the difference between an argument and a parameter?

我正在经历一些面试问题.对于这个问题,我无法给出可靠的答案:

I was going through some interview questions. I wasn't able to come up with a solid answer to this question:

Java中参数与参数之间的区别?
它们有什么不同?

Difference between arguments and parameters in Java?
How are they different?

推荐答案

通常,参数是方法定义中显示的参数.参数是在运行时传递给方法的实例.

Generally a parameter is what appears in the definition of the method. An argument is the instance passed to the method during runtime.

您可以在此处看到说明: http://en.wikipedia.org/wiki/Parameter_(computer_programming)#Parameters_and_arguments

You can see a description here: http://en.wikipedia.org/wiki/Parameter_(computer_programming)#Parameters_and_arguments

这篇关于Java中参数与参数之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆