Java Interview and Answers

Source: Internet
Author: User

    1. What is value passing and reference passing

A value pass is a basic variable , and a copy of the variable is passed. Changing the copy of course does not affect the original variable.
Reference passing is generally for object-type variables . The memory address of the reference object is passed

    1. What are the thread states, and how are they converted?
    2. The difference between a thread and a process, what are the pros and cons
    3. What are the effects and costs of indexing? How do I build an index? How the Index Works
    4. Hash algorithm
    5. Algorithm: Binary search algorithm, bubble sort, select sort algorithm, insert sort, merge, Hill, fast algorithm

http://blog.csdn.net/pzhtpf/article/details/7559896

    1. Lock: Optimistic lock and pessimistic lock
    2. Under what circumstances will a deadlock occur? How do I avoid deadlocks?
    3. JVM GC: Introduces garbage collection mechanism, garbage collection algorithm.
    4. The reflection mechanism of Java
    5. What are the Java collection classes, and which scenarios are used in each
    6. How to quickly find a file under Linux
    7. How to set environment variables under Linux
    8. How to view TCP connection status under Linux
    9. Outline the basic flow of an HTTP request
    10. What is JDBC and why is JDBC required? What is the implementation principle?
    11. The difference between get and post
    12. What is the difference between a cookie and a session, respectively?
    13. Why do I need to encode? How UTF-8 and GBK are encoded
    14. Introduce the next Jdk,jre and JVM respectively

   

Java Interview and Answers

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.