包装类 》所有的引用数据类型都是继承了Object,Object是所有类的基类 String s = “Hello” if(s instanceof Object) //成立 》但是基本数据类型不具备面向对象的特性 》java为8种基本数据类型提供了包装类 包装类的概念主要作用是可以让基本数据类型作为Object类型使用 Tips:字符串转为数字 int num =Integer.parseInt("123")