In my java code I did something like that:
int sleep = 0;
sleep(sleep);
sleep++;
It was pointed out by my bos that it is not good. That it won’t work in php correctly.
Is there any issue / danger using above code in java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no danger, since methods will never be referred to without the parentheses for arguments, so the names will never clash.
However it’s generally clearer and more intuitive if method names are verbs and variable names are nouns, for example: