java basic

String底層基於什麼

jvm會不會回收長久不用的單例對象呢

  • 該類所有的實例都已經被回收,也就是java堆中不存在該類的任何實例。
  • 加載該類的ClassLoader已經被回收。
  • 該類對應的java.lang.Class對象沒有任何地方被引用,無法在任何地方通過反射訪問該類的方法。

       只有三個條件都滿足,jvm纔會在垃圾收集的時候卸載類。顯然,單例的類不滿足條件一,因此單例類也不會被卸載。也就是說,只要單例類中的靜態引用指向jvm堆中的單例對象,那麼單例類和單例對象都不會被垃圾收集,依據根搜索算法,對象是否會被垃圾收集與未被使用時間長短無關,僅僅在於這個對象是不是“活”的。假如一個對象長久未使用而被回收,那麼收集算法應該是最近最長未使用算法,最近最長未使用算法一般用在操作系統的內外存交換中,如果用在虛擬機垃圾回收中,豈不是太不安全了?

 

Final可以用來修飾class 導致不可繼承 不可變類  or private構造方法

javamap中key的原理?

 


EDS (Enterprise Data Services) isresponsible for design and development of Cisco enterprise data platform andservices supporting Cisco business operation. EDS China team as part of EDSglobal team works closely with the US and India colleagues on delivering highquality software solutions.

 

Responsibilities:

* Perform technical assessment byarchitecture and business requirements documents.

* Implement project functionality by technicaldesign document.

* Perform unit test and code review.

 

Requirements:

* Strong Java/J2EE programming experienceand debugging skills (More than 5 years’ experience)

* Familiar with Unix/Linux platformoperations

* Good team player

* Capability to work on multiple projectssimultaneously

* Fluent in writing English. (Fluent inoral English is a good plus)

* Hands-on experience on Oracle or MySQLdevelopment is a plus


 Must have Java, J2EE

也會做些automation 測試相關

 Unix, Linux 操作系統是必須的

 core Java,多線程,basic類的,框架知道的話更


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