diff --git a/notes/Java 基础语法.md b/notes/Java 基础语法.md index 87fc192b..05a53044 100644 --- a/notes/Java 基础语法.md +++ b/notes/Java 基础语法.md @@ -1,140 +1,140 @@ -* [](#) +* [????](#????) * [ final](#-final) - * [ʼ˳](#ʼ˳) - * [Ȩ](#Ȩ) -* [](#) + * [????????](#????????) + * [???????](#???????) +* [????](#????) * [Set](#set) * [Queue](#queue) * [Map](#map) -* [](#) -* [쳣](#쳣) -* [ο](#ο) +* [????](#????) +* [??](#??) +* [??????](#??????) -# +# ???? ## final -**final ** +**final ????** -ΪDZʱҲʱʼܱıij +?????????????????????????????????????????????????????????????????? -ڻͣfinal ʹֵ䣻öfinal ʹò䣬ҲͲ󣬵DZõĶǿ޸ĵġ +????????????final ???????????????????final ????????????????????????????????????????????????? -**final ** +**final ????** -ܱาǡ +???????????????????? -private ʽرָΪ finalжķͻеһ private ǩͬʱķǸǻ෽ˡ +private ?????????????? final????????????????????????????? private ???????????????????????????????????????????????? -**final ** +**final ??** -಻̳С +????????????? -## ʼ˳ +## ???????? -static ľ̬ڴֻһݣֻһʵʱʼһΣݵijʼ +static ???????????????????????????????????????????????????????????????????????? ```java -public static String staticField = "̬"; +public static String staticField = "???????"; ``` -static static һһʵʱһΣĸȡڴе˳ +static ????? static ???????????????????????????????????????????????????????????? ```java static { - System.out.println("̬ʼ"); + System.out.println("??????????"); } ``` -ͨݺͨijʼھ̬ݺ;̬ʼ֮ +?????????????????????????????????????????????? ```java -public String field = ""; +public String field = "????"; ``` ```java { - System.out.println("ʼ"); + System.out.println("???????"); } ``` -ǹ캯еݽгʼ +??????????????????????? ```java public InitialOrderTest() { - System.out.println(""); + System.out.println("??????"); } ``` -ڼ̳е£ʼ˳Ϊ +??????????????????????? -1. ̬ࣨݡ̬飩 -2. ̬ࣨݡ̬飩 -3. ࣨݡ飩 -4. ࣨ -5. ࣨݡ飩 -6. ࣨ +1. ?????????????????? +2. ?????????????????? +3. ???????????? +4. ???????????? +5. ???????????? +6. ???????????? -## Ȩ +## ??????? -Java Ȩηprivateprotected Լ publicӷηʾɼ +Java ?????????????????????private??protected ??? public?????????????????????????????? -ԶеijԱֶԼϷηԱɼʾóԱĶʵóԱɼʾഴ󣬿԰൱еһԱȻʾһ࣬ͺˡ +??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? -protected γԱʾڼ̳ϵгԱɼηû壬Ϊûм̳ϵ +protected ????????????????????????????????????????????????????????????????????????????? -# +# ???? ![](https://github.com/CyC2018/InterviewNotes/blob/master/pics/114c49a6-72e3-4264-ae07-c564127094ac.png) -Ҫ Collection Map ֣Collection ְ ListSet Լ Queue +??????????? Collection ?? Map ?????Collection ??????? List??Set ??? Queue?? ## Set -- HashSetʹ Hash ʵֿ֣֧ٲңʧȥԣ +- HashSet????? Hash ??????????????????????????? -- TreeSetʹʵ֣򣬵DzЧʲ HashSet +- TreeSet?????????????????????????????? HashSet?? -- LinkedListHashSet HashSet IJЧʣڲʹάԪصIJ˳˾ԡ +- LinkedListHashSet?????? HashSet ?????????????????????????????????????????????? ## Queue -ֻʵ֣LinkedList PriorityQueue LinkedList ֧˫С +???????????LinkedList ?? PriorityQueue?????? LinkedList ????????? ## Map -- HashMapʹ Hash ʵ +- HashMap????? Hash ??? -- LinkedHashMap˳Ϊ˳ʹãLRU˳ +- LinkedHashMap???????????????????????????????????LRU????? -- TreeMapںʵ +- TreeMap????????????? -- ConcurrentHashMap̰߳ȫ Map漰ͬ +- ConcurrentHashMap??????? Map?????p??????? -# +# ???? -ÿ඼һ **Class** 󣬰йصϢһʱһͬ .class ļļݱ Class +?????????? **Class** ?????????????????????????????????????????????????? .class ??????????????????? Class ???? -൱ Class ļءڵһʹʱŶ̬ص JVM Уʹ Class.forName('com.mysql.jdbc.Driver.class') ַʽļأ÷᷵һ Class +????????? Class ?????????????????????????????? JVM ????????? Class.forName('com.mysql.jdbc.Driver.class') ?????????????????????????????? Class ???? -ṩʱϢʱżؽڱʱڸ .class ҲԼؽ +???????????????????????????????????????????????????????????????????? .class ??????????????????? -Class java.lang.reflect һԷṩ֧֣java.lang.reflect **Field****Method** Լ **Constructor** ࡣʹ get() set() ȡ޸ Field ֶΣʹ invoke() Method ķ Constructor µĶ +Class ?? java.lang.reflect ???????????????java.lang.reflect ???????? **Field**??**Method** ??? **Constructor** ????????? get() ?? set() ???????????? Field ??????????????????? invoke() ?????????? Method ???????????????????? Constructor ?????????? -IDE ʹ÷ƻȡϢʹһĶʱֶܹΡ͹캯Ϣгûѡ +IDE ?????????????????????????????????????????????????????????????????????????? -# 쳣 +# ?? -Throwable ʾκοΪ쳣׳࣬Ϊ֣**Error** **Exception** Error ʾʱϵͳ +Throwable ????????????ʦ???????????????????????**Error** ?? **Exception**?????? Error ?????????????????? -Exception Ϊ֣**ܼ쳣** **ܼ쳣**ܼ쳣Ҫ try...catch... 䲶񲢽дҿԴ쳣лָܼ쳣dzʱ 0 Arithmetic Exceptionʱ޷ָ +Exception ????????**?????** ?? **???????**???????????? try...catch... ??????????????????????????????????????????????????? 0 ?????? Arithmetic Exception??????????????????????? ![](https://github.com/CyC2018/InterviewNotes/blob/master/pics/48f8f98e-8dfd-450d-8b5b-df4688f0d377.jpg) -# ο +# ?????? -- Eckel B, ˶ , , . Java ˼ [M]. еҵ , 2002. -- [Java ʼ˳ ](https://segmentfault.com/a/1190000004527951) +- Eckel B, ????? , ??? , ?? . Java ?????? [M]. ??????????? , 2002. +- [Java ????????? ](https://segmentfault.com/a/1190000004527951) diff --git a/notes/算法.md b/notes/算法.md index 535ea577..2561d22f 100644 --- a/notes/算法.md +++ b/notes/算法.md @@ -1,5 +1,5 @@ -* [](#) +* [һ ](#һ-) * [ջ](#ջ) * [](#) * [㷨](#㷨) @@ -86,7 +86,7 @@ * [4. ϡ˷](#4-ϡ˷) -# +# һ ## ջ