开发者

Difference between Parsing and Passing?

I know this is basic knowledge but whenever you give parameters to a method are you 'parsing' them, or are you 'passing' them as 'parsing' could be something different?!

I'v开发者_如何学JAVAe just never been overly sure!

Thanks


You are passing them.

"Parsing" means trying to interpret text or strings and break it down into data elements of some kind. (For example, you could parse a string describing a date to turn it into a date object, or parse a file containing source code and turn it into an executable.)


Passing. Parsing is breaking up / interpreting strings.


Each spelling could equally be synonymous e.g. when parsing a date just before passing it into a function.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜