java basic

来源:互联网 发布:pc端转化淘宝链接 编辑:程序博客网 时间:2024/06/07 18:40

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类的,框架知道的话更


0 0
原创粉丝点击