Ante-scriptum: The question should be quite a frequently arising one, so this might be a duplicate. If it is, I haven't found it previously asked here. I don't know if the title is meaningful, but here's the question, anyway. What I want to know is whether the for at the beginning of the following question should be removed or not:. I consider the sentence to be correct, but some days ago, a teacher not mine told me that it was not. And then I remembered that someone else had told me that while it is OK to use the for , the tendency is to get rid of it.
So, it seems that, at least in American English, for is not used. The numbers are such that I'd say it probably holds in other dialects. How long itself expresses duration. So it may not be necessary to use to use 'for' in the beginning of the sentence.
Definitely "For how long It follows the same pattern as others, where the word 'for', 'with', etc are placed at the end of the sentence. For example: How long have you been waiting for? Sign up to join this community. The best answers are voted up and rise to the top. Asked 7 years, 10 months ago. Active 2 years, 8 months ago. Viewed 78k times. Second question I have is, it might be possible that customer can pass wrong information such as negative user ids , negative client id , negative timeout value etc etc..
Then where I should do this validation? Should I do this validation check in the constructor of ClientInput class or at some other place? What's the better way of doing this and how should I do the validation? Improve this question. You have asked two very different questions. You should have made two seperate postings, as Stackoverflow is not meant to be a discussion group.
I'm pretty sure you would find both questions asked and answered many times before. On the first question, search for when to use object and when to use a primitive. Add a comment. Active Oldest Votes. Improve this answer. I don't think there's a single correct answer. A few suggestions: The biggest difference I see between long and Long in this context is that Long may be null. Bucket 6, 9 9 gold badges 31 31 silver badges 42 42 bronze badges. Steve B.
But yes, Long is a wrapper for a long. The only real advantage to using Long is for equating reference instead of value, or using null as some special sentinel. TwilightSun TwilightSun 2, 1 1 gold badge 16 16 silver badges 24 24 bronze badges. Rugal Rugal 2, 1 1 gold badge 13 13 silver badges 15 15 bronze badges. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. How long is this going to take? This does not sound like it has already taken a long time. How long is this going to take is asking for the length of time for the entire project. How much longer is asking for the remainder from the time of the question or answer.
Questions are currently answered in about 30 minutes. Ask a Question. What's a difference between a How long is this gonna take? Thanks in advance:. We say 'gonna', but we write 'going to'.
0コメント