一.String类是什么 public final class String implements java.io.Serializable, Comparable<String>, CharSequence { /** The value is used for character storage. */ private final char value[]; /** Cache the hash code for the string */ private int hash; // Def…
Java API 常用类 super类详解 "super"关键字代表父类对象.通过使用super关键字,可以访问父类的属性或方法,也可以在子类构造方法中调用父类的构造方法,以便初始化父类继承的属性. 通过下面的例子来详细说明 super 的用法 /** * Person 父类 */ package cn.yjlblog.www; public class Person { int a; int b; public Person(int a,int b){ this.a = a; thi…