![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java基础学习
JH.Yuan
这个作者很懒,什么都没留下…
展开
-
java类加载流程
类加载流程 演示代码: public class Demo01 { public static void main(String[] args) { Demo demo = new Demo(); //3、创建对象 demo.test01(); //18、调用test01方法 } } class Demo{ ...原创 2020-02-23 05:01:49 · 2259 阅读 · 0 评论 -
static使用
static的三种使用方法 先贴上代码 package week02.day04; /* static的三种用法: 1、static修饰属性 2、static修饰方法 3、static修饰代码块 */ class TestStatic{ static String name="abc"; int age; { System.out.println("...原创 2020-02-20 23:20:07 · 206 阅读 · 0 评论 -
继承和super关键字
继承,super关键字 public class TestSuperSub { public static void main(String[] args) { Sub s1 = new Sub(); System.out.println(); Sub s2 = new Sub(1); System.out.println()...原创 2020-02-19 22:25:16 · 255 阅读 · 0 评论