随笔分类 -  java基础

摘要:例子 阅读全文
posted @ 2017-05-31 10:20 路迢迢 阅读(818) 评论(0) 推荐(0)
摘要:Java 提供两种不同的类型:引用类型和原始类型(或内置类型)。Int是java的原始数据类型,Integer是java为int提供的封装类。Java为每个原始类型提供了封装类。 原始类型封装类:boolean Booleanchar Characterbyte Byteshort Shortint 阅读全文
posted @ 2017-05-31 10:19 路迢迢 阅读(382) 评论(0) 推荐(0)
摘要:package com.zzu.java.error; /** * 异常的练习 * @author 程路超 * */ public class TestError { public static void main(String[] args) { System.out.println(tte()); //多重c... 阅读全文
posted @ 2017-05-31 10:17 路迢迢 阅读(222) 评论(0) 推荐(0)
摘要:package com.zzu.java.array; public class TtString { /** * @author 程路超 * @param args */ public static void main(String[] args) { String string = "abcdefghijklmnopqrstuvw... 阅读全文
posted @ 2017-05-31 10:16 路迢迢 阅读(388) 评论(0) 推荐(0)
摘要:算术异常类:ArithmeticExecption 空指针异常类:NullPointerException 类型强制转换异常:ClassCastException 数组负下标异常:NegativeArrayException 数组下标越界异常:ArrayIndexOutOfBoundsExcepti 阅读全文
posted @ 2017-05-31 10:16 路迢迢 阅读(322) 评论(0) 推荐(0)
摘要:一、 关键字总览: 访问控制 private protected public 类,方法和变量修饰符 abstract class extends final implements interface native new static strictfp synchronized transient 阅读全文
posted @ 2017-05-31 10:14 路迢迢 阅读(33837) 评论(2) 推荐(8)