![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
伊藤柒海
这个作者很懒,什么都没留下…
展开
-
[JAVA]Static关键字
public static void main(String[] args) { People a=new People(); a.country="中国"; People b=new People(); System.out.println(b.country); b.print(); a.p(); } //static 修饰后的变量 静态化 既...原创 2018-12-19 16:24:42 · 106 阅读 · 0 评论 -
【JAVA基础】主函数 main
public class Main方法 { public static void main(String[] args) { System.out.println(args.length); }}1. public 访问修饰符 ,公共的--代表该函数或该类的访问权限是最大的2. static 代表主函数随着类的加载而加载3. void 代表主函数没有具体的返回值 ...原创 2018-12-19 16:56:00 · 2499 阅读 · 0 评论