Recently for some reasons want to change jobs, sorting out the personal feel that the interview is still worth noting some of the topics, to the need to find a reference to the work of the people.
The following basic only record the topic or the approximate answer, if you have a more detailed answer or better surface test wood, I hope you see can be added in the comments, for Yimeimei reference, thank you.
Java section:
1. What kinds of implementations do threads have?
Thread, runable is relatively simple, the main test center in about the thread pool, because I do not use a lot of threads in depth to ask.
2. sychronised keyword
The focus of the study is to understand that sychronized is targeted at objects, not statements or methods.
3. Hashcode and Equals method
Examine what the role of the Hashcode method is, the relationship between equals and hashcode
4. HashMap and TreeMap
The use of HashMap, the basic knowledge of hashing, hashmap simple implementation principle (array plus linked list), TreeMap is a sorted binary tree
5. The lock mechanism of Java
Reentrantlock understanding, because there is not much to understand, such as his simple principle, and the advantages and disadvantages of sychronized
6. Design mode
Say a few of the design patterns you've used, their usage scenarios
7. Describe the GC in detail and how simple it works
Investigate the mechanism of GC recovery time and GC Judging whether it needs to be recycled
8. Final, finally, finalize
It's a cliché to pay attention to the final finalize is not particularly common
Android section:
1. What kinds of Android animations, detailed explanation
Property animation, view animation, drawable animation. Specific comparison wants to examine property animation
2. Activity Visible Lifetime and Foreground Lifetime
The observation of visible refers to the onstart->onstop, foreground refers to the Onresume->onpause
3. Minsdkversion, Maxsdkversion, and targetsdkversion in Androidmanifest.xml files
Min, Max indicates that the SDK version must be scoped to this range, and target refers to whether Android decides to run in compatibility mode
4. Fragment
To investigate the use of fragment and to contact the activity
5. Weak reference pointers and strong reference pointers for Android
A basic concept has been tested
6. Android Touch Process
The main research dispatchtouchevent, Ontouchevent, onintercepttouchevent
7. Intentservice and Aidl
The difference between intentservice and ordinary service, interprocess communication
8. Layout Survey
LinearLayout layout_weight Meaning, the difference between AlignTop and alignparenttop in Framelayout
9. The view's drawing process
Study the methods of Onmeasure (especially setmeasureddimension), OnLayout and OnDraw
Adapter in a ListView or ViewPage
Looper, Handler, Message
Latest Android Face test questions collection