Can I ask same question in both stackoverflow.com and programmers.stackexchange.com or maybe other Stack Exchange site? or it will be duplicate question?
This is the official guidance for cross-posting questions between Stack Exchange sites. In short, each site is a different community. Even if the question would be on-topic on multiple sites, you should read each site's Help Center to find out what is and isn't on-topic and similar questions to find out the types of answers each site provides, and then ask the question where you feel you'll get the best answers. If you aren't getting the answers you need, moderators can migrate it if it's necessary. Alternatively, you can always ask a new question on a new site that is worded differently to get better answers. However, simply copy and pasting questions between sites isn't recommended.