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

开平市住房和城乡建设局网站四川网站建设公司 登录

开平市住房和城乡建设局网站,四川网站建设公司 登录,华龙网重庆新闻,保世基官方网站建设java#xff1a;Class的isPrimitive方法使用 1 前言 java中Class类的isPrimitive方法#xff0c;用于检查类型是否为基本类型。java虚拟机创建了int、byte、short、long、float、double、boolean、char这8种基础信息#xff0c;以及void#xff0c;一共9种。为这9种类型时…javaClass的isPrimitive方法使用 1 前言 java中Class类的isPrimitive方法用于检查类型是否为基本类型。java虚拟机创建了int、byte、short、long、float、double、boolean、char这8种基础信息以及void一共9种。为这9种类型时isPrimitive方法将返回true反之返回false。 参考java api文档说明 Determines if the specified Class object represents a primitive type. There are nine predefined Class objects to represent the eight primitive types and void. These are created by the Java Virtual Machine, and have the same names as the primitive types that they represent, namely boolean, byte, char, short, int, long, float, and double. These objects may only be accessed via the following public static final variables, and are the only Class objects for which this method returns true. Returns: true if and only if this class represents a primitive type Since: JDK1.1 See Also: Boolean.TYPE, Character.TYPE, Byte.TYPE, Short.TYPE, Integer.TYPE, Long.TYPE, Float.TYPE, Double.TYPE, Void.TYPE2 使用 public static void isPrimitive(){System.out.println(Boolean.TRUE.getClass().isPrimitive());System.out.println(TestAsync.class.isPrimitive());Class? a new Integer(1).getClass();System.out.println(a.isPrimitive());System.out.println(*******************);System.out.println(int.class.isPrimitive());System.out.println(byte.class.isPrimitive());System.out.println(short.class.isPrimitive());System.out.println(long.class.isPrimitive());System.out.println(float.class.isPrimitive());System.out.println(double.class.isPrimitive());System.out.println(boolean.class.isPrimitive());System.out.println(char.class.isPrimitive());System.out.println(void.class.isPrimitive()); }执行结果 false false false ******************* true true true true true true true true true
http://www.dnsts.com.cn/news/237138.html

相关文章:

  • 求网站晚上睡不着2021建设部网站怎么查安全员
  • 做网站做哪个好潍坊网站建设科技有限公司
  • 企业网站首页设计原则网站顶部有空白
  • 深圳公司排名前100名江门seo代理计费
  • 宁乡县建设局网站重庆做网站微信的公司
  • 做网站都要掌握什么软件网站建设模型
  • 作图网站跨境平台
  • 营销网站建设yyeygtytty建站售后服务
  • 网站维护页面模版百度网站推广价格查询
  • 响应式网站开发案例服务器上发布网站
  • 自己做网站翻译服务器 - 添加网站学校网站建设关键技术
  • 宝塔网站建设跳转微信可打开线上销售模式
  • 深圳营销型网站建设免费企业网站软件
  • 快速学习网站建设网站改版报告
  • 宁波高端网站建设联系方式wordpress is tag
  • 江门营销型网站建设公司简述网站建设评估的指标有哪些
  • 销售网站建设月夜直播免费看
  • aspcms网站模板郑州企业网站设计
  • 城市建设网站的项目背景wordpress空间满
  • 查找邮箱注册过的网站新增备案网站负责人
  • 上市公司集团网站建设wordpress自定义分类
  • 成都全网营销型网站无锡外贸网站制作公司
  • 退役厅网站建设中标公告北京市网站开发公司
  • 自己做网站用什么软件平台运营推广
  • 帝国行业网站模板wordpress怎么考别人的
  • wordpress免费域名优化图片传网站
  • 大连网站开发平台厦门网站建设培训班
  • 阿里云建站保证销售额asp网站怎么做
  • seo优化排名易下拉程序杭州优化公司多少钱
  • 摩托车网站建设网页设计与制作教程教科书