- 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
- What are the thread states, and how are they converted?
- The difference between a thread and a process, what are the pros and cons
- What are the effects and costs of indexing? How do I build an index? How the Index Works
- Hash algorithm
- Algorithm: Binary search algorithm, bubble sort, select sort algorithm, insert sort, merge, Hill, fast algorithm
http://blog.csdn.net/pzhtpf/article/details/7559896
- Lock: Optimistic lock and pessimistic lock
- Under what circumstances will a deadlock occur? How do I avoid deadlocks?
- JVM GC: Introduces garbage collection mechanism, garbage collection algorithm.
- The reflection mechanism of Java
- What are the Java collection classes, and which scenarios are used in each
- How to quickly find a file under Linux
- How to set environment variables under Linux
- How to view TCP connection status under Linux
- Outline the basic flow of an HTTP request
- What is JDBC and why is JDBC required? What is the implementation principle?
- The difference between get and post
- What is the difference between a cookie and a session, respectively?
- Why do I need to encode? How UTF-8 and GBK are encoded
- Introduce the next Jdk,jre and JVM respectively
Java Interview and Answers