随笔分类 -  笔试面试题

狂神说笔记
摘要:package com.oop.Demo11; public class Demo02 { public static void main(String[] args) { //面试题 Integer integer1 = new Integer (100); Integer integer2 = 阅读全文
posted @ 2020-11-30 09:19 柠檬情 阅读(100) 评论(0) 推荐(0)
摘要:笔试面试题 super注意点: ​ 1. super调用父类的构造方法,必须在构造方法的第一个 ​ 2. super 必须只能出现在子类的方法或者构造方法中! ​ 3. super和 this不能同时调用构造方法! Vs this: ​ 代表的对象不同: ​ this:本身调用者这个对象 ​ sup 阅读全文
posted @ 2020-11-25 17:20 柠檬情 阅读(93) 评论(0) 推荐(0)