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

网站域名必须备案吗怎么把网站放到服务器上

网站域名必须备案吗,怎么把网站放到服务器上,个人注册运输公司流程和费用,做网站对公司的作用1.static 修饰符应用范围 static修饰符只能用来修饰类中定义的成员变量、成员方法、代码块以及内部类(内部类有专门章节进行讲解)。 2.static 修饰成员变量 static 修饰的成员变量称之为类变量。属于该类所有成员共享。 示例 package cn.lyxq.test04;public class Chinese…1.static 修饰符应用范围 static修饰符只能用来修饰类中定义的成员变量、成员方法、代码块以及内部类(内部类有专门章节进行讲解)。 2.static 修饰成员变量 static 修饰的成员变量称之为类变量。属于该类所有成员共享。 示例 package cn.lyxq.test04;public class ChinesePeople {private String name;private int age;public static String country 中国;public ChinesePeople(String name,int age){this.name name;this.age age;}public String getName() {return name;}public void setName(String name) {this.name name;}public int getAge() {return age;}public void setAge(int age) {this.age age;} } package cn.lyxq.test04;public class ChinesePeopleTest {public static void main(String[] args) {ChinesePeople cp1 new ChinesePeople(张三,20);System.out.println(ChinesePeople.country);ChinesePeople.country日本;ChinesePeople cp2 new ChinesePeople(李四,30);System.out.println(ChinesePeople.country);ChinesePeople cp3 new ChinesePeople(王五,32);System.out.println(ChinesePeople.country);}} 如果类变量是公开的那么可以使用 类名.变量名 直接访问该类变量 3.static 修饰成员方法 static 修饰的成员方法称之为类方法属于该类所有成员共享。 package cn.lyxq.test04;public class ChinesePeople {private String name;private int age;private static String country 中国;public ChinesePeople(String name,int age){this.name name;this.age age;}public String getName() {return name;}public void setName(String name) {this.name name;}public int getAge() {return age;}public void setAge(int age) {this.age age;}//类方法public static String getCountry() {return country;}//类方法public static void setCountry(String country) {ChinesePeople.country country;} } package cn.lyxq.test04;public class ChinesePeopleTest {public static void main(String[] args) {ChinesePeople cp1 new ChinesePeople(张三,20);ChinesePeople.setCountry(日本);ChinesePeople cp2 new ChinesePeople(李四,30);System.out.println(ChinesePeople.getCountry());ChinesePeople cp3 new ChinesePeople(王五,32);System.out.println(cp3.getCountry());//不是最优访问方式}} 如果类方法是公开的那么可以使用 类名.方法名直接访问该类方法。 4.static 修饰代码块 static 修饰的代码块被称为静态代码块在JVM第一次记载该类时执行。因此静态代码代码块只能执行一次通常用于一些系统设置场景。 package cn.lyxq.test04;public class ChinesePeople {private String name;private int age;//使用static修饰的成员变量称为类变量不会随着成员变化而变化属于所有成员共享private static String country ;//static修饰的代码块称为静态代码块在JVM第一次加载该类的时候执行只能执行一次static{country 中国;System.out.println(country属性已经被赋值);}public ChinesePeople(String name,int age){this.name name;this.age age;}public String getName() {return name;}public void setName(String name) {this.name name;}public int getAge() {return age;}public void setAge(int age) {this.age age;}//类方法public static String getCountry() {return country;}//类方法public static void setCountry(String country) {ChinesePeople.country country;} } package cn.lyxq.test04.test;import cn.lyxq.test04.ChinesePeople;public class ChinesePeopleTest {public static void main(String[] args) {ChinesePeople cp new ChinesePeople(张三,20);}} 5.static内存
http://www.eeditor.cn/news/126057/

相关文章:

  • 响应式网站建设推荐乐云践新金方时代网站建设
  • 学习网站建设的心得体会贵港做网站化司
  • 全栈网站开发流程图佳木斯外贸网站建设
  • 山东省建设厅执业注册中心网站手机怎样用网站做成软件
  • 深圳骏域网站建设专家88兰州新区小程序建站
  • 如何做采集网站旅游电子商务的三创赛网站建设
  • 网站推广采用的方法网站解析后怎么做
  • 网站的大图标怎么做手机可以建网站嘛建站好吗
  • 网站网站制作多少钱百度链接提交收录入口
  • 深圳高端做网站公司中国建筑集团招聘信息
  • 网站开发前端与后端做网站建设费用预算
  • 做网站要用什么软件设计网站公司湖南岚鸿设计
  • 网站 开发 工具wordpress的列表
  • 音乐网站后台管理模板汕头外包公司
  • 软件公司网站模板图片长沙推广网络营销公司
  • 单位网站服务的建设及维护网站建设 优惠
  • Wordpress做APP后端导航网站怎么做seo
  • 网站开发的岗位及职责新网站建设怎么样
  • 怎么自己做网站发优惠券wordpress熊掌号出图改造
  • 石材网站建设方案网站制作收费明细表
  • 监控摄像机网站建设163邮箱怎么申请企业邮箱
  • 一个织梦两个网站如何分析一个网站建设策划案
  • 商城网站建设源码赤峰网站设计公司
  • 苏州网站建设公司找哪家wordpress的文章写好后无法访问
  • discuz论坛网站做的门户wordpress自动升级
  • 环保主题静态网站模板美食网站开发与设计报告
  • 认证网站源码八戒财税
  • 网站的公共头部怎么做织梦企业网站管理系统
  • 广州网站优化工具服务烟台网站建设力荐企汇互联见效付款
  • 青岛模板化网站如何搭建微信公众号平台