My question was downvoted, even though it showed research effort. Why was it downvoted?
People downvote for various reasons, but the
That means that there are at least three reasons to downvote:
Let's take each of these reasons in turn:
No Research Effort:
In this example, the user has not attempted to look up this information by themselves. If they did, they would have their answer. In the unlikely chance they didn't understand the answer, then they'd be able to at least point to the research they've done:
Question is unclear:
In this example, the user doesn't really explain the fundamentals of their question. The words "not work" entail that there's a reason something doesn't work, and the compiler, although obtuse, does at least spit out errors. The user didn't include those error messages, making the question impossible to answer.
Question is not useful:
This question is a very basic question that has no use to anyone, anywhere. It is literally the first thing you'd learn in any book you read. Because it's such a non-useful question, it should be downvoted (though not closed).
Your question certainly had research effort, but it was potentially not clear or not useful, as one comment seems to point to:
It was potentially not useful because this seems to be a basic question for Java.
Again, these are only possible reasons why people should downvote. People can downvote for whatever reason they choose. I wouldn't get too hung up on it.
Yes, this is the appropriate place.
You can also ask in comments on your questions why they have been downvoted and if you do get comments that a question is not good, you can, in comments ask the commenter what you can do to improve the question.
Note that there are several resources on the web that you will probably be directed to:
(please add other relevant resources if you know of them)
From your SO question:
my money is in that someone found offensive that you didn't leave a link to that solution.