Sunday, 15 May 2011

java - Difference between return() and simple return -



java - Difference between return() and simple return -

i coding , simple thought (obviously question) comes mind if have function :

int fun1(int p){ return(p); }

and have function this:

int fun1(int p){ homecoming p; ==> absence of parenthesis }

so difference between 2?

no difference. can decide utilize parens if makes things clearer.

java

No comments:

Post a Comment