本文介绍了Java中参数和参数的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能的重复:
参数和参数有什么区别?
我正在回答一些面试问题.我无法对这个问题给出可靠的答案:
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中参数和参数的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!