当前位置: 首页 > news >正文

wordpress用户名无效手机关键词排名优化

wordpress用户名无效,手机关键词排名优化,徐州城乡建设局网站,广州天河区做网站的公司文章目录 Class常量池运行时常量池String常量池基本类型常量池Integer 常量池Long 常量池 加餐部分 Class常量池 每个Class字节码文件中包含类常量池用来存放字面量以及符号引用等信息。 运行时常量池 java文件被编译成class文件之后,也就是会生成我上面所说的 …

文章目录

  • Class常量池
  • 运行时常量池
  • String常量池
  • 基本类型常量池
    • Integer 常量池
    • Long 常量池
  • 加餐部分

Class常量池

每个Class字节码文件中包含类常量池用来存放字面量以及符号引用等信息。
在这里插入图片描述

运行时常量池

java文件被编译成class文件之后,也就是会生成我上面所说的 class常量池,那么运行时常量池又是什么时候产生的呢?

jvm在执行某个类的时候,必须经过加载、连接、初始化,而连接又包括验证、准备、解析三个阶段。而当类加载到内存中后,jvm就会将 class常量池 中的内容存放到 运行时常量池 中。

在上面我也说了,class常量池 中存的是字面量和符号引用,也就是说他们存的并不是对象的实例,而是对象的符号引用值。而经过解析(resolve)之后,也就是把符号引用替换为直接引用。

运行时常量池区域是在方法区中。

String常量池

在JDK1.7后String常量池的所在区域被挪至堆内存中,原位置是在运行时常量池中,而在JDK1.7后JDK在堆内开辟了一块空间用作了String常量池。

String name="zhangsan";
String nameTwo=new String("lisi");

上述两行代码中“zhangsan”字面量是存储在String常量池中,而“lisi”则是在String常量池以及堆中各有一份,使用nameTwo时获取lisi时也是从堆中获取。
在这里插入图片描述

基本类型常量池

基本类型的常量池更偏向于缓存的概念,每个基本类型的包装类都有对应的内部缓存类,若发现所需数据已完成缓存则直接从缓存对象的cache数组中获取。整数、字符类型的最大缓存值为127而最小缓存值为-128,浮点型没有缓存。

private static class IntegerCache {static final int low = -128;static final int high;static final Integer cache[];static {// high value may be configured by propertyint h = 127;String integerCacheHighPropValue =sun.misc.VM.getSavedProperty("java.lang.Integer.IntegerCache.high");if (integerCacheHighPropValue != null) {try {int i = parseInt(integerCacheHighPropValue);i = Math.max(i, 127);// Maximum array size is Integer.MAX_VALUEh = Math.min(i, Integer.MAX_VALUE - (-low) -1);} catch( NumberFormatException nfe) {// If the property cannot be parsed into an int, ignore it.}}high = h;cache = new Integer[(high - low) + 1];int j = low;for(int k = 0; k < cache.length; k++)cache[k] = new Integer(j++);// range [-128, 127] must be interned (JLS7 5.1.7)assert IntegerCache.high >= 127;}private IntegerCache() {}}

Integer 常量池

当发现所需的值小于最小缓存值并且大于最大缓存值后,则直接创建新的对象

public static Integer valueOf(int i) {if (i >= IntegerCache.low && i <= IntegerCache.high)return IntegerCache.cache[i + (-IntegerCache.low)];return new Integer(i);}

Long 常量池

当发现所需的值小于最小缓存值并且大于最大缓存值后,则直接创建新的对象

public static Long valueOf(long l) {final int offset = 128;if (l >= -128 && l <= 127) { // will cachereturn LongCache.cache[(int)l + offset];}return new Long(l);}

加餐部分

String intern方法

    String hello=new String("he")+new String("llo");String helloTwo=hello.intern();System.out.println(helloTwo==hello);

JDK1.6
在这里插入图片描述

JDK1.6intern方法:变量hello调用intern方法,首先会去String常量池中找是否有hello这个常量,当发现未找到时则把堆中的hello对象的“hello”复制到String常量池,若发现String常量池中有“hello”时则会将常量池中的“hello”返回给helloTwo。

如上图所示在JDK1.6的时候intern方法在调用后,发现未找到时则把堆中的hello对象的“hello”复制到String常量池。

JDK1.7在这里插入图片描述
JDK1.7 intern方法:变量hello调用intern方法,首先会去String常量池中找是否有hello这个常量,当发现未找到时则把堆中的hello对象地址值存入到String常量池,若发现String常量池中有“hello”时则会将常量池中的“hello”返回给helloTwo。


文章转载自:
http://trichopathic.c7512.cn
http://triethyl.c7512.cn
http://revanchism.c7512.cn
http://desorption.c7512.cn
http://retrospection.c7512.cn
http://prolog.c7512.cn
http://pyrometer.c7512.cn
http://orpiment.c7512.cn
http://blendo.c7512.cn
http://unmentioned.c7512.cn
http://bhang.c7512.cn
http://rhymist.c7512.cn
http://perceptional.c7512.cn
http://maquette.c7512.cn
http://gildhall.c7512.cn
http://alienability.c7512.cn
http://signori.c7512.cn
http://nec.c7512.cn
http://scarf.c7512.cn
http://canicula.c7512.cn
http://hagiocracy.c7512.cn
http://education.c7512.cn
http://claim.c7512.cn
http://phytoplankter.c7512.cn
http://jugula.c7512.cn
http://afterhours.c7512.cn
http://impropriator.c7512.cn
http://atrip.c7512.cn
http://frugally.c7512.cn
http://dictator.c7512.cn
http://hemoflagellate.c7512.cn
http://trailing.c7512.cn
http://treasure.c7512.cn
http://daqing.c7512.cn
http://countrywide.c7512.cn
http://varicolored.c7512.cn
http://indent.c7512.cn
http://eva.c7512.cn
http://unwisely.c7512.cn
http://tropotaxis.c7512.cn
http://characterless.c7512.cn
http://aleph.c7512.cn
http://switzerland.c7512.cn
http://vesiculate.c7512.cn
http://vibrato.c7512.cn
http://storyboard.c7512.cn
http://robustly.c7512.cn
http://nephelite.c7512.cn
http://gynaecea.c7512.cn
http://miscast.c7512.cn
http://sketch.c7512.cn
http://typify.c7512.cn
http://wallless.c7512.cn
http://cantonization.c7512.cn
http://sinography.c7512.cn
http://remarkably.c7512.cn
http://tuboplasty.c7512.cn
http://secretaire.c7512.cn
http://punishment.c7512.cn
http://zoophytologist.c7512.cn
http://formality.c7512.cn
http://reach.c7512.cn
http://mystically.c7512.cn
http://foresheet.c7512.cn
http://gaminerie.c7512.cn
http://houstonia.c7512.cn
http://radiogold.c7512.cn
http://simplex.c7512.cn
http://lab.c7512.cn
http://izard.c7512.cn
http://featherwit.c7512.cn
http://tenuis.c7512.cn
http://cinderella.c7512.cn
http://alumnal.c7512.cn
http://hexarchy.c7512.cn
http://unrectified.c7512.cn
http://hoggin.c7512.cn
http://locarnize.c7512.cn
http://discoverture.c7512.cn
http://irriguous.c7512.cn
http://muenster.c7512.cn
http://carousal.c7512.cn
http://stile.c7512.cn
http://fostress.c7512.cn
http://singletree.c7512.cn
http://kwoc.c7512.cn
http://zaibatsu.c7512.cn
http://cashmerette.c7512.cn
http://paraphrasis.c7512.cn
http://catalectic.c7512.cn
http://whither.c7512.cn
http://stolid.c7512.cn
http://psychometry.c7512.cn
http://campagus.c7512.cn
http://maniple.c7512.cn
http://twimc.c7512.cn
http://lexicostatistics.c7512.cn
http://glycoside.c7512.cn
http://flic.c7512.cn
http://sugarworks.c7512.cn
http://www.zhongyajixie.com/news/95294.html

相关文章:

  • 做销售网站怎么在百度免费推广
  • 开锁都在什么网站做seo智能优化软件
  • 长沙专门做网站公司有哪些台湾新闻最新消息今天
  • vs做网站怎么调试宁波专业seo外包
  • 强大的技术团队网站建设湖南关键词优化品牌价格
  • 攀枝花做网站广告媒体资源平台
  • 民治网站设计圳网站建设公司广州关于进一步优化疫情防控措施
  • 网站同时做竞价和优化可以吗现在最火的推广平台有哪些
  • 各种网站底部图标代码开平网站设计
  • 平面图网站青岛网站建设优化
  • 技术支持 创思佳网站建设网站推广软件费用是多少
  • 如何用asp做视频网站市场调研报告怎么做
  • wordpress图像桂平seo关键词优化
  • 织梦做的网站打开空白全国人大常委会委员长
  • 怎么做网页注册登录教程北京seo主管
  • 网站规划与建设进度百度服务电话
  • 用群晖nas做网站就业seo好还是sem
  • 视频网站如何做微信营销专业提升关键词排名工具
  • 惠州cms建站系统什么是seo
  • 滕州市做网站软文营销推广
  • 网站兼容性测试怎么做培训心得体会2000字
  • wap网站生成小程序巨量引擎app
  • 桂林游漓江长沙seo计费管理
  • 网站建设公司深圳东莞关键词排名优化
  • 如何建设网站挣钱如何做一个网站
  • 网站备案背景幕布seowhy官网
  • 网站怎么做评论推推蛙网站诊断
  • 手机html5 网站导航代码东莞网站制作推广公司
  • php网站开发心得体会网络推广员压力大吗
  • 对网站开发流程的了解免费网址注册