Skip to content

Commit b717533

Browse files
committed
复习
1 parent e28d1b6 commit b717533

File tree

4 files changed

+259
-0
lines changed

4 files changed

+259
-0
lines changed

复习/day01review.txt

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
1�����������
2+
�������չ
3+
�����Ӳ��
4+
���������
5+
���������
6+
java���ԣ���ƽ̨�ԣ���ȫ��
7+
James Gosling:java֮��
8+
9+
2�����ÿ���̨����
10+
�̷� ð�� �س������뵽ij������
11+
cd ����Ŀ¼
12+
cd �༶Ŀ¼
13+
dir ��ʾĿ¼�µ������ļ�
14+
md ����Ŀ¼
15+
rd ɾ��Ŀ¼
16+
cls ����
17+
exit �˳�
18+
���䣺rd -sɾ����ʱ��ѯ��
19+
rd -q -sֱ��ɾ����ѯ��
20+
21+
3��JVM��JRE,JDK���ߵ�����͹�ϵ
22+
JVM:java���������֤��java���ԵĿ�ƽ̨�ͣ�Ϊ��ͬ�IJ���ϵͳ�ṩ��ͬ��JVM
23+
JRE:����ʱ����������JVM�ͺ������
24+
JDK���������߰�������JRE�Ϳ�������
25+
26+
4��JDK�����أ���װ��ж��
27+
28+
5����������
29+
path��Ϊ������exe�ļ���������Ŀ¼������
30+
��ʽ��
31+
(1)�ڻ���������path������javac��java���ڵ�Ŀ¼����������ǰ�棬�ж���ᰴ˳�����
32+
(2)������������JAVA_HOMEΪexeĿ¼���ڣ�path:%JAVA_HOME%\bin;ԭ����·��
33+
34+
classpath��Ϊ����class�ļ���������ָ��Ŀ¼������
35+
36+
6��HelloWorld����
37+
38+
7��
39+
8��
40+
9��
41+
10��ע��
42+
ע�ͷ��ࣺ
43+
����ע�� //
44+
����ע�� /* */
45+
�ĵ�ע�� /** */
46+
47+
ע�͵����ã�
48+
����˵���ĵ�����ߴ���Ŀ��Ķ���
49+
�������Գ���
50+
51+
11���ؼ���
52+
java�����б����ľ������⺬��ĵ���
53+
54+
�����ؼ���
55+
56+
ע�����
57+
goto��const��java�еĹؼ��ֱ��������Dz�δʹ��
58+
59+
60+
12����ʶ��
61+
��ʶ�������ڸ��࣬�ӿڣ����������������ķ���
62+
63+
��ɹ���
64+
Ӣ�Ĵ�Сд��ĸ
65+
����
66+
_��$
67+
ע�����
68+
���������ֿ�ͷ
69+
�����ǹؼ���
70+
�ϸ����ִ�Сд
71+
72+
������������
73+
���������ļ��У����ڽ����ͬ����������
74+
ȫ��Сд
75+
76+
����߽ӿڣ�ÿһ������ĸ��д(��һ����API���ṩ�����ӿ������������淶)
77+
78+
�������߱������׸�����Сд�������д
79+
80+
��������д���������֮����_����

复习/day02review.txt

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
1������
2+
�Զ��峣������������
3+
����ֵ������
4+
�ַ���
5+
�ַ�
6+
����
7+
����������
8+
null���ճ���
9+
10+
2������ת��
11+
���ƣ�
12+
�����ƣ�0b
13+
�˽��ƣ�0
14+
ʮ�����ƣ�0x
15+
16+
�������Ƶ�ʮ���ƣ�
17+
ϵ��*����^Ȩ�η�֮��
18+
19+
ʮ���Ƶ��������ƣ�
20+
����ȡ��ֱ����Ϊ�㣬������ת
21+
22+
8421�룺����ת��
23+
24+
3���з������������ʾ
25+
ԭ�룺�����Ʊ�ʾ
26+
����������λ0 ����������λ1
27+
���룺������ԭ��һ�� ��������λΪ1������λ��λȡ��
28+
���룺������ԭ��һ�� �����ɷ����1
29+
30+
31+
4��������������
32+
������֣�
33+
byte 1
34+
short 2
35+
int 4
36+
long 8
37+
38+
boolean 1
39+
char 2
40+
float 4
41+
double 8
42+
43+
Ĭ��������int����������double
44+
����long�ͣ�ĩβ��l����L(�Ƽ����ô�д��)
45+
����float�ͣ�ĩβ��f����F
46+
47+
�����������ͣ�
48+
���飬�࣬�ӿ�
49+
50+
5������
51+
����ִ�й���ֵ�ᷢ���仯����
52+
53+
6������ת��
54+
��ʽ����ת��
55+
byte��short��char->int->long->float->double
56+
57+
longΪʲô��ת����float��
58+
float�ײ�洢�ṹ��ͬ
59+
��ʾ�����ݷ�Χfloat����
60+
ע�����������ӣ��ȼ��ٿ��ռ�
61+
������ӣ��ȿ��ռ��ټ�
62+
ǿ������ת��
63+
������
64+
65+
7����ֵ�����
66+
8�����������
67+
+-*/% ++ --�������Լ�����ǰ����������
68+
+= -= *= /= %=
69+
9����ϵ�����
70+
>< == >= <= !=
71+
10���߼������
72+
& | ! ^
73+
&& ||��������

复习/day03review.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1����Ŀ�����

复习/day19review.txt

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
1���쳣
2+
�쳣�������쳣�dz�����ֲ����������
3+
�೤�����г����Σ��������
4+
�쳣���ࣺ
5+
Throwable
6+
|---Error
7+
|---Exception
8+
|---RuntimeException ����ʱ�쳣 ���Դ�����Ҳ���Բ����� ��Ҫ�Ĵ���
9+
|---��RuntimeException ����ʱ�쳣 ���봦����������ͨ������
10+
11+
�쳣������ʽ��
12+
JVMĬ�ϴ����ķ�ʽ���������쳣����Ϣ�������̨������������
13+
A��try...catch...finally...
14+
���ֱ���ʹ�ã�try�����catch��finally�е�һ�����ʹ��
15+
finally���ص㣺��finally���Ƶ�����嶼��ִ��
16+
ע�����finally���Ƶ����ֻҪ��JVM�˳�֮ǰ����ִ��
17+
18+
B��throws
19+
���ܴ������쳣�����׳���һ�����main�����еõ��������main���������� ����JVM
20+
21+
�쳣��ע�����
22+
JDK7�������ԣ�
23+
catch(�쳣1 | �쳣2 |... e):����쳣
24+
try...catch���ж��catch���ʱ����Χ��������쳣����������һ��
25+
26+
�����쳣������ֻ���׳��븸����ͬ�쳣�������ڸ����쳣�����쳣
27+
����쳣������ֻ���׳��븸����ͬ�쳣�������ڸ����쳣�����쳣����
28+
û���쳣������û���׳��쳣������Ҳ�����׳��쳣
29+
30+
�Զ����쳣��
31+
����̳���RuntimeException����Exception��
32+
�������׳��Զ����쳣
33+
public class MyException extends Exception {
34+
public MyException() {
35+
super();
36+
}
37+
public MyException(String message) {
38+
super(message);//�������Ϣ�Ĺ��췽��
39+
}
40+
}
41+
42+
�����⣺final��finalize��finally������
43+
final����ʾ���յ����η�
44+
�����ࣺ�಻�ܱ��̳�
45+
���γ�Ա�������������ܱ���д
46+
���γ�Ա������������Ϊ����
47+
finalize��Object��ķ��������ڵ�������������������������System��� gc()��������һ��
48+
finally�����쳣������try...catch...finally���ʹ�ã��쳣�����ǻ�ִ�� �Ĵ���
49+
50+
throws��throw������
51+
throws�����������ϣ���������������������׳�����쳣�ö��Ÿ�������ʾ �����쳣�Ŀ�����
52+
throw����������󣬺��������ֻ��һ�����󣬱�ʾ����ij�־�����쳣
53+
54+
finally�е�������return֮ǰ����֮��ִ��
55+
return�����ص㣬����һ������·��
56+
57+
2��File��
58+
���������ڱ�ʾ�ļ������ļ��е���
59+
60+
���췽����
61+
public File(String pathname)
62+
public File(String parent,String filename)
63+
public File(File file, String name)
64+
public File(URI uri):ͳһ��Դ��λ�������Դ�ͨ������·�������ļ������ļ��ж� ��
65+
66+
��Ա������
67+
�������ܣ�
68+
public boolean createNewFile():�������ļ�
69+
public boolean mkdir():��������Ŀ¼
70+
public boolean mkdirs():�������Ŀ¼
71+
72+
ɾ�����ܣ�
73+
public boolean delete():ɾ��ִ���ļ����ļ���
74+
ɾ�����ص㣺ɾ����������վ��ֱ��ɾ��
75+
76+
�жϹ��ܣ�
77+
public boolean isDirectory():�ж��Ƿ�Ϊ�ļ���
78+
public boolean isFile():�ж��Ƿ�Ϊ�ļ�
79+
public boolean exists():�ж��Ƿ����
80+
public boolean canWrite():�Ƿ��д
81+
public boolean canRead():�Ƿ�ɶ�
82+
public boolean isHidden():�Ƿ�����
83+
���������ܣ�
84+
public boolean rename(String dest):��������·����ͬ��������·����ͬ ���к�������
85+
86+
��ȡ���ܣ�
87+
public String getAbsolutePath():
88+
public String getName():
89+
public String getPath():
90+
public int length():��ȡ�ļ���С
91+
public long lastModified():����޸�ʱ��ĺ���ֵ
92+
�߼���ȡ���ܣ�
93+
public String[] list():�ַ�����洢ij��Ŀ¼�������ļ����ļ���
94+
public File[] listFile():�ļ�����洢ij��Ŀ¼�������ļ����ļ���
95+
96+
���������
97+
public String[] list(fileNameFilter filter):
98+
public File[] listFile(fileNameFilter filter):
99+
fileNameFilter�������ڲ��࣬��дaccept����
100+
new fileNameFilter(){
101+
public boolean accept(File dir,String name){
102+
return new file().isFile() && name.endswit(".jpg");
103+
}
104+
}
105+
���������ijĿ¼������JPG��β���ļ�

0 commit comments

Comments
 (0)