Http://www.java2s.com/java2s/
This website is very good. It is divided into three categories: example, products, and articles. There are many sub-classes under each category, as well as the search function, which makes searching very convenient .. For example, if you want to learn SWT/jface, you just need to study SWT jface eclipse in example. In addition, this website also contains JavaScript DHTML, C #/C sharp, C/ANSI-C, SQL/MySQL and other classes. In short, it is very good.
2. codezoo http://www.codezoo.com/
This is owned by o'reily. Besides Java, there are Ruby and python.
3. Java LearningSource codeRetrieval System http://www.chinaitlab.com/www/school/codesearch/index.html
It is rare to see Chinese products, so we need to support them, and the classification is clear.
4. koders Co., http://www.koders.com/
Is a comprehensive query site, but it seems to be fromCodeSearch for keywords, including a lot of languages.
5. Resources for Java server-side developers http://www.java201.com/
Specifically, it is a website for resource collection, and there are not many code queries. However, its classification is quite fine, such as articles, books, examples, extensions, and frameworks. You can enter spring or hibernate as a keyword to search for it.