android開發面試問題記錄

1. 用枚舉實現單例模式,可以避免反射、序列化問題

https://www.cnblogs.com/chiclee/p/9097772.html

2. 定義變量存在哪裏?static的話存在哪裏?final static存在哪裏?

定義變量存在棧區,static存在方法區,final static存在運行時常量池。
https://blog.csdn.net/wangaz521/article/details/79311429?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

3. GC Roots定義

https://blog.csdn.net/weixin_43615488/article/details/104793174

4. HashMap、HashTable、ConcurrentHashMap的區別

https://www.cnblogs.com/heyonggang/p/9112731.html

5. IntentService和Service區別

https://www.jianshu.com/p/5a32226d2ce0

6. 鎖:synchronized和lock鎖,lock鎖可以實現哪些synchronized實現不了的功能。

https://blog.csdn.net/qq_39487033/article/details/86602761

7. 強緩存和協商緩存

https://blog.csdn.net/A798443266/article/details/100118979

8. java四大引用

https://www.cnblogs.com/luhuajun/p/12184964.html

9. 單例模式雙重檢驗鎖的判斷是否爲null的意義

https://blog.csdn.net/weixin_43615488/article/details/104747459

10. Handler持有Activity的泄露解決:靜態內部類+弱引用

https://blog.csdn.net/weixin_43615488/article/details/104730406

11. 設計模式之六大原則

https://blog.csdn.net/weixin_43615488/article/details/104723518

12. Android 5.0到10.0版本的重大變化

https://blog.csdn.net/weixin_43615488/article/details/104705383

13. java GC機制

https://blog.csdn.net/u010010664/article/details/81002142

14. java中的Error和Exception

https://www.cnblogs.com/Terry-Wu/p/8343373.html

15. 單例模式中的volatile關鍵字

https://www.cnblogs.com/keeya/p/9260565.html

16. JVM內存分佈

https://blog.csdn.net/sinat_30293905/article/details/82463204

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章