What to know before a Java interview

Source: Internet
Author: User
Tags connection pooling

First, preface

Only a bald head can become stronger.

Review Front:

    • Guangzhou three to find Java internship experience

I wrote my interview experience and some of the questions I encountered during the interview (written and interview questions).

I also spent a lot of time on the Java Foundation before the interview, during which I wrote my blog roughly, and also found a lot of good information on the Internet (part of it was not finished). Here to share with you ~ ~ ~

This is the article I wrote a note written in a navigation , for the PC-side: Https://zhongfucheng.bitcron.com/post/shou-ji/pcduan-wen-zhang-dao-hang. more important points of knowledge also draw a mind map , the new article will be added later.

Information that may be of interest:

    • Mind Map Original: Https://zhongfucheng.bitcron.com/post/shou-ji/nao-tu-da-quan
    • Video Network disc: Https://zhongfucheng.bitcron.com/post/shou-ji/shi-pin-wang-pan
Second, in the study of the face of the question of finishing

Before studying or sorting out the knowledge point also like to look for a face test, the following is my personal arrangement of the interview questions:

2.1 Integrated
    1. The difference between ArrayList and vectors
    2. The difference between HashMap and Hashtable
    3. The difference between list and map
    4. The elements in set cannot be duplicated, so what is the way to distinguish between duplicates or not? Are you using = = or equals ()?
    5. The difference between collection and collections
    6. Tell the Arraylist,linkedlist storage performance and features
    7. Differences between the enumeration and iterator interfaces
    8. What are the characteristics of listiterator
    9. What is a concurrent collection class?
    10. What conditions does the class need to satisfy if the key value of HashMap in Java is a class object?
    11. ArrayList set add 10,000 data, how to improve efficiency
    12. What are the best practices related to the Java collection framework?

Answer:

    • Java Collection Summary "face question + brain map", the knowledge point clean sweep! : 1190000014403696
2.2servlet+tomcat face question
    1. What is the default port for Tomcat and how to modify it?
    2. What are the connector operating modes (optimizations) for Tomcat?
    3. Tomcat has several deployment options
    4. Servlet life cycle
    5. What is the difference between get mode and post method
    6. What are the two parameters of the Doget and Dopost methods
    7. There are several ways to get the value of an element of a page, say it separately
    8. Request.getattribute () and request.getparameter () differences
    9. The difference between forward and redirect
    10. How do tomcat containers create instances of servlet classes? What's the principle?
    11. What is a cookie? What is the difference between a session and a cookie?
    12. Servlet Security Issues

Answer:

    • Tomcat+servlet interview questions are here: 1190000013119518
2.3JSP face question
    1. The difference between JSP static inclusions and dynamic inclusions
    2. What are the built-in objects for JSPs?
    3. What are the differences between JSP and servlet, the common denominator, and the scope of their application?
    4. Attribute Scope range
    5. Write 5 kinds of JSTL common tags
    6. Write a custom label to inherit what class
    7. How is the JSP executed? is the execution efficiency lower than the servlet?
    8. How to avoid JSP page automatically generate session object?
    9. What are the drawbacks of JSP?
    10. Tell the difference between a servlet and a CGI?
    11. The design pattern of JSP is briefly described.

Answer:

    • JSP interview questions are here: 1190000013185611
2.4JDBC
    1. What are the steps for JDBC operations database?
    2. What is the difference between statement and preparedstatement,callablestatement in JDBC?
    3. How big data is paged out in JDBC?
    4. Talk about how database connection pooling works and how it is implemented?
    5. How do you handle transactions in Java?
    6. Write the code for a JDBC connection to the native MySQL database
    7. How does jdbc implement the loosely coupled Java program and the JDBC driver?
    8. What is the difference between execute,executequery,executeupdate?
    9. What is the dirty read of JDBC? What kind of database isolation level prevents dirty reads?
    10. What is phantom reading, and which isolation level prevents phantom reading?
    11. What is JDBC's drivermanager for?
    12. What is the resultset of JDBC?
    13. What are the different resultset?
    14. What are the datasource of JDBC and what are the benefits?
    15. What are the different types of locks that exist in JDBC?
    16. What's the difference between Java.util.Date and java.sql.Date?
    17. What if java.sql.SQLException:No suitable driver found?
    18. What are the rowset of JDBC and what are the different rowset?
    19. What are the best practices for JDBC?

Answer:

    • JDBC Common interview questions: 1190000013312766
2.5 database
    1. What is a stored procedure? What are the pros and cons?
    2. What are the three paradigms?
    3. What is a view? And what are the usage scenarios for the view?
    4. What scenarios are drop, delete, and truncate used separately?
    5. What is an index? What is the role and pros and cons?
    6. What is a transaction?
    7. What are optimistic and pessimistic locks on the database?
    8. What are super-keys, candidate keys, primary keys, and foreign keys, respectively?
    9. What kinds of SQL constraints are there?
    10. In which state does the database run to prevent data loss?
    11. MySQL Storage engine
    12. What is the data structure of the indexes used by the MYIASM and InnoDB two engines?
    13. The difference between varchar and char
    14. What are the MySQL tables for permissions?
    15. What are the ways to fix data table corruption?
    16. The line lock of the InnoDB engine in MySQL is done by adding
    17. The idea of database optimization
    18. The difference between Oracle and MySQL

Answer:

    • Database face Test (developer must SEE): 1190000013517914
2.6HTTP
    1. The difference between HTTP and https:
    2. What is the HTTP protocol stateless protocol? How to resolve the HTTP protocol stateless protocol?
    3. The difference between a URI and a URL
    4. What are the common HTTP methods?
    5. HTTP request message and Response message format
    6. How HTTPS works
    7. Steps experienced by a complete HTTP request
    8. Common HTTP corresponding Status codes
    9. HTTP1.1 version new features
    10. HTTP Optimization Scenarios

Answer:

    • HTTP interview questions are here: 1190000013271378
2.7xml+json
    1. What is JSON and XML
    2. What is the difference between JSON and XML? What do you have in common
    3. What are the methods of JSON and XML parsing?
    4. Advantages and disadvantages of XML and JSON
    5. What is XPath
    6. What is an XML namespace? Why is it important?
    7. What is the difference between DOM and SAX parser?
    8. What is XSLT?

Answer:

    • Xml+json interview questions are here: 1190000013285207
2.8 Filter and listener face questions
    1. What are the roles and uses of listeners?
    2. What are the effects and usages of filters?
    3. The role of Web. xml?
    4. What does asynchronous processing in Servlet 3 refer to?

Answer:

    • Filter Listener interview questions are here: 1190000013263161
2.9AJAX
    1. What is Ajax and why use Ajax
    2. What is the difference between AJAX applications and traditional Web applications?
    3. Please describe the XMLHttpRequest object
    4. Describe common methods and properties of XMLHttpRequest objects
    5. What is the implementation process of Ajax?
    6. How many types of Ajax requests are there in total callback
    7. There is no difference in how XMLHttpRequest objects are created in IE and Firefox.
    8. What are some of the drawbacks of Ajax?
    9. Please explain JavaScript's homologous strategy.
    10. Explain the asynchronous loading JS.
    11. How do I troubleshoot cross-domain issues?
    12. Ajax solves browser caching problems?

Answer:

    • Ajax interview questions are here: 1190000013291898
2.10Hibernate
    1. How does hibernate work and why should I use it?
    2. How does hibernate delay loading (lazy loading)?
    3. How do the relationships between classes be implemented in hibernate? (e.g. one-to-many, many-to-many relationships)
    4. How to convert three states of Hibernate
    5. The advantages and disadvantages of three different retrieval strategies of hibernate
    6. What caching policies are supported by hibernate
    7. What is the difference between sorted collection and ordered collection in hibernate?
    8. The caching mechanism of hibernate
    9. There are several ways to query hibernate
    10. How to optimize hibernate?
    11. Talking about the function of inverse in hibernate
    12. The difference between JDBC hibernate and Ibatis
    13. How can I optimize conditional queries in the database when they are very slow?
    14. What is sessionfactory, is she thread safe?
    15. Get and load differences
    16. The difference between persist and save
    17. Meaning of the merge
    18. What are the primary key generation policies
    19. Brief description of Getcurrentsession and opensession differences in hibernate
    20. What does a named SQL query in hibernate refer to?
    21. Can I define hibernate's entity class as the final class?

Answer:

    • Hibernate most comprehensive question: 1190000013635882
2.11Mybatis
    1. What is the difference between {} and ${}?
    2. What if the attribute name in the entity class is different from the field name in the table?
    3. How do I get the auto-generated (primary) key value?
    4. How can I pass multiple parameters in mapper?
    5. MyBatis What does dynamic SQL do? What are the dynamic SQL? Can you briefly describe how dynamic SQL is executed?
    6. MyBatis The XML mapping file, can the ID be duplicated in different XML mapping files?
    7. Why is MyBatis a semi-automatic ORM mapping tool? What is the difference between it and the automatic?
    8. Usually an XML map file will write a DAO interface corresponding to it, how does this DAO interface work? Dao interface method, the parameters are not the same, the method can be overloaded?
    9. What are some improvements to mybatis than Ibatis?
    10. There are several implementations of interface bindings, how are they implemented separately?
    11. How is MyBatis paged? What is the principle of the paging plugin?
    12. Brief introduction to MyBatis's plug-in operation principle, and how to write a plugin
    13. Does MyBatis support lazy loading? If so, what is the principle of its implementation?
    14. What are the executor actuators for MyBatis? What is the difference between them?
    15. What are the differences between MyBatis and hibernate?

Answer:

    • MyBatis Common interview questions: 1190000013678579
Third, on-line high-quality face questions

The following basic is I have seen, or did not read the quality of the test post (there are some parts did not see, but feel good interview questions) ~ ~ ~

3.1 Questions with answers

First, high-quality surface examination questions finishing---1:

    • Http://www.cnblogs.com/lanxuezaipiao/p/3371224.html

Second, high-quality surface examination questions finishing---2 (inside there are 7 parts):

    • Http://www.cnblogs.com/wmyskxz/p/9070737.html

Three, high-quality surface examination questions finishing---3:

    • 44921941

Four, high-quality surface examination questions finishing---4:

    • Https://mp.weixin.qq.com/s/jl8K-1DW2L2JMl4DQ-aMIA

Five, high-quality surface examination questions finishing---5:

    • https://zhuanlan.zhihu.com/p/23533393

Six, high-quality surface examination question finishing---6 (120 questions of cattle net):

    • Https://www.nowcoder.com/ta/review-java/review?query=&asc=true&order=&page=1

Seven, high-quality surface examination questions finishing---7:

    • Https://www.cnblogs.com/w1570631036/p/8549333.html
3.2 Face questions without answers

Most of this part has no answer, but it is a relatively high-quality noodle question.

Recommend one:

    • Https://www.jianshu.com/p/a07d1d4004b0

Recommendation two:

    • Https://juejin.im/post/5a94a8ca6fb9a0635c049e67

Recommended Three:

    • https://zhuanlan.zhihu.com/p/33495324
Four, in addition to the face of the question to understand the place

Internet School Enrollment Guide:

    • https://zhuanlan.zhihu.com/p/24887478

Programmer's Biography:

    • Https://github.com/geekcompany/ResumeSample/blob/master/java.md

What exactly is a tripartite agreement? (as I've read before, it's a simple summary : If you're not sure to stay in a company before graduation, don't worry about signing a third party!) "I am a non-professional, I have to think more about this, and that is my personal understanding of the Tripartite Agreement")

    • https://zhuanlan.zhihu.com/p/27812661
    • https://zhuanlan.zhihu.com/p/27251453
    • https://www.zhihu.com/question/55830264/answer/150124081
    • https://www.zhihu.com/question/264144015/answer/277539104

Resume Delivery platform (I have delivered):

    • Boss Direct Hire
    • Hrm
    • Internship Hate

High-quality noodles by + information:

    • http://www.54tianzhisheng.cn/2017/09/17/Interview-summary/
V. Summary

The resources on the Internet is still more, above all I was in the blog, looking for information when accumulated collection. Of course, there are a lot of resources on the Internet, if you also have a good collection of resources, may wish to share in the comment area to learn together ~ ~

These online so many face questions can not be read all, according to their own situation to see it. See the question is also check whether you really understand this knowledge point, it is also likely to have a new harvest.

Finally, I wish the friends in the search for a job can find a favorite job, in the work of friends can raise wages, in the study of friends in school progress AH ~ ~

If the article is wrong, welcome to correct, we communicate with each other. Accustomed to looking at technical articles, want to get more Java resources of students, can pay attention to the public number: Java3y. For everyone's convenience, just new QQ Group: 742919422, we can also go to exchange. Thanks for the support! I hope to introduce more to other needy friends.

Directory navigation for articles :

    • Https://zhongfucheng.bitcron.com/post/shou-ji/wen-zhang-dao-hang

What to know before a Java interview

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.