Day01 - 01 - Lesson01 - Java Basics P1 PDF
Day01 - 01 - Lesson01 - Java Basics P1 PDF
Day01 - 01 - Lesson01 - Java Basics P1 PDF
2
3
4
5
6
Present: Present:
Comment
Structure
Statement
Keyword
String constant/literal
7
8
9
10
11
Present: Default structure, class file. Present: Default structure, class file.
12
13
14
15
16
17
In red not mention in this course In red not mention in this course
18
Integral type has MAX_VALUE and MIN_VALUE => overflow exception or casting error Integral type has MAX_VALUE and MIN_VALUE => overflow exception or casting error
Memory capacity => Precision and range of each number type
19
20
Binary truncate Binary truncate
Aware the same effect in object casting
21
>>>: shift ignore sign shift right with leftmost bit >>>: shift ignore sign shift right with leftmost bit
>> : shift keep sign shift right without leftmost bit
22
23
24
25
26
27
28
29
30
1: human, car, client, student 1: human, car, client, student
2: ": human sex, age, name, address.
3
31
32
Combine the action with data in an IT Object => OOP Combine the action with data in an IT Object => OOP
33
34
35
36
Constructor by default Constructor by default
Not OK yet, see access modifier next page
37
Class: public or no modifier Class: public or no modifier
38
Public data is denied Public data is denied
39
40
41
Operation on String will be presented in next day Operation on String will be presented in next day
42
43
44
Dng lp Scanner khng ni nhiu v lung. Dng lp Scanner khng ni nhiu v lung.
45
46
String format is used to replace the parameter into place holder with the needed
format
String format is used to replace the parameter into place holder with the needed
format
Attention to header, argument used twice, first argument is left aligned
BaseYear and Observed Year is in Date type
Present the use of pattern
47
Number format directive list Number format directive list
48
Date and time string format directive Date and time string format directive
49
50
51
Date and time string format directive Date and time string format directive
52
53
Present: Present:
Comment
Structure
Statement
Keyword
String constant/literal
54
55
56
57
58