java學習筆記3

2021-04-19 07:03:41 字數 352 閱讀 5715

一些異常

exception

ioexception

numberformatexception

illegalargumentexception

arrayindexoutofboundexception

用法try{}

catch(e){}

throws exception{}

catch(e){}

互動式輸入

bufferedreader in = new bufferedreader(new inputstreamreader(system.in));

string line = in.readline();

JAVA學習筆記(3)

常見語法結構 a.if b.if else c.if else if else 建議 不管if後有幾行 都加上 舉例 int a 3 if a 3 system.out.println 大於等於3 if a 3 system.out.println 大於3 else system.out.print...

3 java學習筆記

1 消除型別之間的耦合關係 2 可替換性 3 可擴充性 4 介面性 5 靈活性 6 簡化性 1 繼承 2 重寫 3 父類引用指向子類物件 舉個栗子 父類 public class pro public pro int b public integer geta public void seta in...

java學習筆記 第3天

sys as sysdba sys使用者可以建立其他的使用者 create user user01 identified by u01 建立乙個使用者,口令為u01 alter user user01 identified by us01 更改使用者的口令為us01 password 只有擁有dba...